I have created a .NET executable that is using a COM assembly that is located on a servers shared drive but am having problems getting it to work on a number of machines. I have made sure to register the COM assembly using regsvr32 and doing that it
works on the computer that I developed it on.
From there I brought it over to a Windows XP computer where it didn't work. I received an error message saying "Error loading type library/DLL ... (TYPE_E_CANTLOADLIBRARY)", which was in reference to the COM assembly. After some trouble shooting
I found that if I granted the executable FullTrust in the .NET security model the .NET executable was able to load the assembly and everything worked properly.
From there I brought the executable to a Windows Vista computer, registered the COM assembly using regsvr32 and granted the .NET executable FullTrust in .NET but it doesn't work. I get the same error saying "Error loading type library/DLL ... (TYPE_E_CANTLOADLIBRARY)".
Any idea why the same steps would work in XP but not in Vista? Am I missing something obvious? Any suggestions would be greatly appreciated.
View Complete Post