I am trying to add a DLL as a reference to my project (64bit on VS2010 with the .NET Framework 4). But I am getting the following error:
A reference to 'XXX' could not be added. Please make sure that the file is accessible, and that it is a valid assemlby or COM component
Installing the DLL with RegSvr32 says:
The module was loaded but the entry-point DLLRegisterServer was not found...
Trying installing the DLL with RegAsm says:
error RA0000: "XXX" could'nt be loaded, because it's no valid .NET Assembly.
I have no idea hwat kind of DLL that is, but that it is contained inside a SDK which was written for the .NET Framework and in C#.
Can anyone help me with this?
Thanks a lot!
Sorry for my english:
either the dll is dll building for c# (managed) and you have just to add reference to your project : (right click on reference and select "add reference") -> you have to indicate where is locating your dll. After when you need to access at your Dll, you have to include the namespace.
either is not a dll building for c# you have to load the dll by using loadlibray
either your dll is corrupted..
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.