Question Installing an app

deanobravo

Member
Joined
Dec 31, 2011
Messages
9
Location
Christchurch, New Zealand
Programming Experience
10+
I have an application that I can run on my computer simply by copying the built .exe file to another directory and opening it.
I also created a date input manager .dll that my .exe can access.
When I include this dll in my project by (referencing it etc) it compiles and works fine in the vb.net environment but the built .exe no longer works when you open it, I get the following error about the .dll file.

************** Exception Text **************
System.TypeInitializationException: The type initializer for 'ContractsMgmt.ConMgmnt' threw an exception.
---> System.IO.FileNotFoundException: Could not load file or assembly
'DateManager, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
The system cannot find the file specified.
File name: 'DateManager, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
at ContractsMgmt.ConMgmnt..cctor()


Of course I can get around the problem by merely including the .dll source code as a procedure in my main project but i would like to use this dll with other projects. It also works if I use the ClickOnce Deployment Wizard (which I have taken an instant dislike to).
My question is: can I somehow register(or something) my .dll so that my .exe can utilise it?
 
Last edited:
Back
Top