Link to home
Create AccountLog in
Avatar of Joseph Longo
Joseph LongoFlag for United States of America

asked on

c# runtime error

i have c# project that runs fine on my machine but when i move the .exe to a production server i get the following error:

Application: DAMAGES.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IO.FileNotFoundException
Stack:
   at DAMAGES.Program.Main(System.String[])

what am i missing here?
any help would be greatly appreciated.
SOLUTION
Avatar of p_davis
p_davis

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER CERTIFIED SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Avatar of Joseph Longo

ASKER

ok so i moved the app to another machine and i get this error.
"To run this application, you must first install one of the following versions of the .NET framework."


 the other IIS webserver is giving me problems right now trying to run any updates.  

could this be my problem?

how do i tell which version of .NET my computer is running?
error.jpg
i have gotten further with this.
see attached file.

there is a .dll from another developer on my machine.
do i need to move this to the machine i am running this on?
right now, in the project, the GCTInternal dll is on my desktop.
program runs fine on my machine.

error:
Unhandled Exception: System.IO.FileNotFoundException: could not load file or assembky 'GCTInternal, version4.1.4657.284, or one of its dependencies.
i resolved this by moving the dll to the target machine... to a path that matched my development machine path... in the service reference properties path...
is that the way you guys would do this?

i'll award points to everyone if you can give me a good project design answer.

-joe