473,385 Members | 1,317 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

VS 2005 project distribution problem

Hi, I've made som applications with VS 2005 and now I try to distribute them
to another machine. This aint working unless that machine has also got VS
2005 installed.

I get an error that looks like this (translated from swedish): "This program
could not start as its configuration is wrong. The problem might be corrected
if you reinstall the program."

The program is very small and I only exported the .exe file.

Did anyone see this before?
Sep 26 '06 #1
4 1315

MikeMikeMike wrote:
Hi, I've made som applications with VS 2005 and now I try to distribute them
to another machine. This aint working unless that machine has also got VS
2005 installed.

I get an error that looks like this (translated from swedish): "This program
could not start as its configuration is wrong. The problem might be corrected
if you reinstall the program."

The program is very small and I only exported the .exe file.

Did anyone see this before?
Yes. It's a pain. Unlike previous versions which listed the DLLs they
couldn't find, 2005 is very unhelpful about missing files. Did you also
export the .exe.config (if you have one)? Have you installed the .NET
Framework and any extensions you use?

I'm sorry I can't be much more helpful. After days of fiddling when we
first used VS 2005 we eventually came up with a list of things to
install to run things without VS 2005 itself, but I don't really know
how we did it.

Chris

Sep 26 '06 #2


"ch*********@postmaster.co.uk" wrote:
>
MikeMikeMike wrote:
Hi, I've made som applications with VS 2005 and now I try to distribute them
to another machine. This aint working unless that machine has also got VS
2005 installed.

I get an error that looks like this (translated from swedish): "This program
could not start as its configuration is wrong. The problem might be corrected
if you reinstall the program."

The program is very small and I only exported the .exe file.

Did anyone see this before?

Yes. It's a pain. Unlike previous versions which listed the DLLs they
couldn't find, 2005 is very unhelpful about missing files. Did you also
export the .exe.config (if you have one)? Have you installed the .NET
Framework and any extensions you use?

I'm sorry I can't be much more helpful. After days of fiddling when we
first used VS 2005 we eventually came up with a list of things to
install to run things without VS 2005 itself, but I don't really know
how we did it.

Chris

Thanks for answering Chris.

The program makes use of some dlls but I don't have any .exe.config file to
see which. The computer I'm trying to run on has got the .net framework 2.0
so that should not be the problem.

Hmm, come to think of it the program ran before on that system. Maybe I
changed something in the project setup that ties it closer to VS 2005.

Mike
Sep 26 '06 #3
Hi, I've made som applications with VS 2005 and now I try to distribute them
to another machine. This aint working unless that machine has also got VS
2005 installed.
Most likely, the problem is that you do not correctly distribute the runtime
dlls with your application.
See here for more info:
http://www.codeproject.com/cpp/vcredists_x86.asp

--
Kind regards,
Bruno.
br**********************@hotmail.com
Remove only "_nos_pam"
Sep 26 '06 #4

"MikeMikeMike" <Mi**********@discussions.microsoft.coma écrit dans le
message de news: 75**********************************@microsoft.com...
Hi, I've made som applications with VS 2005 and now I try to distribute
them
to another machine. This aint working unless that machine has also got VS
2005 installed.

I get an error that looks like this (translated from swedish): "This
program
could not start as its configuration is wrong. The problem might be
corrected
if you reinstall the program."

The program is very small and I only exported the .exe file.

Did anyone see this before?
Use depends (www.dependencywalker.com) on the target machine to see what is
the mising DLL.

I suspect you are missing the CRT dll (eg, msvcrt80.dll and msvcp80.dll).
Visual 2005 has introduced a versionning scheme aimed at reducing DLL hell.
With this model, an exe specifies in a manifest it's exact dependencies
(using checksums of the required DLLs). With Windows XP and up, the system
can have multiple versions of the same DLL installed on a special "side by
side" system folder.
Although the whole idea behind this evolution is good, I believe MS missed
it's goal with regard to usability, since redistribution of those
"versionned" exe and DLLs can be quite problematic. Here is a good entry
point concerning redistribution of the new CRT :
http://msdn2.microsoft.com/en-us/library/ms235299.aspx

Arnaud
MVP - VC
Sep 26 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

27
by: Rene | last post by:
I keep getting the following error every time I compile the solution under VS 2005: ---------------- Error 5 Unable to copy file "obj\Debug\xyz.dll" to "bin\Debug\xyz.dll". The process...
7
by: ashley.ward | last post by:
We have been using VB6 to develop small custom apps that access an Oracle database, in order to extend a larger product that is developed by our colleagues in Germany (who use C++ and Java). As...
9
by: Alessandro | last post by:
When I build a setup project under vb2005, starts "Microsoft sql server 2005 Tool" showing "Please wait while windows configures Microsoft sql server 2005 tools" Then it stop with this message:...
2
by: Michael Kalika | last post by:
Hi, We have developed a VSTO 2005 Excel application and we would like to leverage ClickOnce deployment mechanism for distribution of this application. How can we do that? I was digging in MSDN...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.