I have refered a 64-bit com interop dll in a c# class library project and have the code to initialize it, this library is used in a asp.net project.
Since the business layer project and asp.net is in c# i have configured to be for Any CPU platform. Also i have set the
Now when i try to initialize the com class in my business layer project i get below error. Any advice what this error for and why does it mention as not valid Win32 application as i have covered it to 64 bit.
Creating an instance of the COM component with CLSID {31DE5D69-1F5F-434D-8855-F627EAEB2404} from the IClassFactory failed due to the following error: 800700c1 is not a valid Win32 application. (Exception from HRESULT: 0x800700C1).
Thanks
I Had to register the dll in a 64-bit command prompt of visual studio 2012, This registered the dll properly as 64-bit and i was able to use it in c# project.