My application loads a .dll at runtime
Assembly.Loadfile
When the application runs by right click + click on application , it searches for the .dll in the windows folder [ System32 folder ]
Sometimes if the application is delivered through an msi setup it works fine but for direct copy/paste deployement it always gives error that .dll could not be found.
Any help with this would be greatly appreciated.
Regards,
Ramlagan M
Updated on 30-August-2011
It is Managed dll.
Whenever I run the application it creates
icon of the application in taskbar.
Now if i right click on this taskbar icon
it shows me 3 menus
1. Close Window
2. Pin this program to taskbar
3. My Application [ say abc ]
Now if i click on abc it creates new instance of the application but this time
exe search for dll in system32 folder [ Assembly.Loadfile ] where it is not available.