Click here to Skip to main content
15,898,371 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I had an error when the c# executable program had executed.
How to solve it?
I set up .netframework 2.0 and the dll file exist in the same folder with the executable.

Windows xp

virus?
:((
your sincerely
Posted
Updated 20-Jul-10 20:05pm
v3
Comments
Rajesh Sajjanar 21-Jul-10 2:13am    
Hi, please post what is the error you are facing ?
scankevin 21-Jul-10 3:11am    
I have posted just a moment ago.

It could be the wrong version of the dll, or the dll could be corrupt. There's little chance that it's a virus.
 
Share this answer
 
Comments
scankevin 21-Jul-10 3:33am    
Reason for my vote of 4
It could be happened
Are you referencing this dll directly from your project or from another project already referenced? Check whether you added reference to this dll.
 
Share this answer
 
Comments
scankevin 21-Jul-10 3:33am    
Reason for my vote of 4
It could be happened too
Thanks a lot.
I use the OPC Foundation dll, I was building the solution alright in my computer.
The following message is "Unhandled exception has occurred in your application....
Could not load file or assembly 'OpcRcw.Da,Version=3.0.3.0,Culture = neutral,
PublicKeyToken=.......'
"
It's the primary message. :omg:

plus:
I reference it directly.Reference->Add Reference.It's in there.
 
Share this answer
 
v2
Comments
Christian Graus 21-Jul-10 3:11am    
And did you make sure that the DLL is the right version ? Did you try looking at the inner exception to see if it tells you what causes it to not load ? Where did this dll come from ?
scankevin 21-Jul-10 3:32am    
No exception.In my work computer,everything is alright.I put the application on a server, the error come up. After having reinstalled the server system, The application executed successfully!!!
Toli Cuturicu 21-Jul-10 6:18am    
Reason for my vote of 1
fake answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900