Click here to Skip to main content
15,902,938 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi! guys, this is the case, I've made a class library DLL ex. myClass.DLL and I referenced it in my Test.exe app, the program is running, the problem is that when It comes to Setup and deployment I want myClass.DLL to be in system folder, and the Test.exe stays in the Application Folder, but when I run it... there's an error saying.

"An error occurred creating the form. See Exception.InnerException for details. The error is: Could not load file or assembly 'myClass, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified".

by the way I set the System = True in the property window in myClass.dll

thanks.
Posted

1 solution

You need to read this How the Runtime Locates Assemblies[^]

Placing your assembly in the system folder is NOT what you should do, ever.
 
Share this answer
 
Comments
OriginalGriff 4-Sep-10 9:52am    
Reason for my vote of 5
:thumbsup: Let's hope he listens... not holding my breath, though.
teebonaire 5-Sep-10 1:20am    
Thanks for the reply, but there's a lot to read... whew... are there any simple methods like in the setup deployment settings?. Code please.

For Others, Additional Suggestion would be grate...
[no name] 5-Sep-10 8:44am    
Try Rent-a-Coder if you can't be bothered to read and learn

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