Can't run on another PC

J

James

Heres a previos thread but the problems was not yet solved-
Can someone read and help please?
Regards
James

"When I copy a release(debug version the same) version folder of my
application output to another PC, and try to run it I get the following
error message:
"The application failed to start because the application configuration is
incorrect".
The environment is as follows:
The IDE is VS 2008 with SP1 running on Windows Vista.
The other PC is Windows XP sp1
Can someone help please?
Regards
James"

What version of .NET does your application target? What version is
installed on the other PC?

Thanks Mr. Duniho,

I checked and saw the following-
What version of .NET does your application target?
Version 2.0
What version is
installed on the other PC?
Both version 1.1 and version 2.0

Regards
James
 
G

Gregory A. Beamer

Heres a previos thread but the problems was not yet solved-
Can someone read and help please?
Regards
James

The error is question

"The application failed to start because the application configuration
is incorrect".

is due to one of two things. Either

a) the config is incorrect for the version. This is most common with
ASP.NET apps, not windows apps, as the config changes from 1.x to 2.0.

b) you are missing a dependency.

B is the more common reason. A good possibility here is you have a
library you are using that got installed in the GAC on your local
machine (perhaps a third party library) that is not installed on the
other machine. The solution is to install it on the new machine or
include it in the /bin file and deploy as part of the application.

Peace and Grace,

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com

*******************************************
| Think outside the box! |
*******************************************
 
J

James

Thanks allot Mr. Beamer,
Is there a way to determine what is this missing library, or what are all
the libraries that are used by the application?
Regards
James
 
G

Gregory A. Beamer

Thanks allot Mr. Beamer,
Is there a way to determine what is this missing library, or what are
all the libraries that are used by the application?

if the app is running, you can use Process Explorer:

http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx

Find the app in question in the explorer and you can drill down to the
individual bits it runs.

Outside of this, there are some third party tools that can catalogue
references.

With ASP.NET, checking the local bin folder (where it is working), as
well as the web.config, works. Web.config is necessary if you have any
third party bits in the GAC, as they will not appear in the /bin folder.
Those third party bits will have to be installed on the server, as well.

If installing on the server is not an option, you will have to pull a
local copy of the libs and deploy, as usual.

The same is true of windows apps that use the GAC, by the way, but the
references are stored a bit differently.

Peace and Grace,

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com

My vacation and childhood cancer awareness site:
http://www.crazycancertour.com

*******************************************
| Think outside the box! |
*******************************************
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top