Last post Sep 09, 2013 01:38 AM by Angie xu - MSFT
Sep 04, 2013 09:18 AM|james_km|LINK
Hi, I have 64 bit windows 7. I created classlibrary (VS2012) and SN/registered it with
C:\>sn -k C:\API3\test\bin\Debug\mykey.snk
C:\Windows\Microsoft.NET\Framework\v4.0.30319>regasm C:\API2\test\obj\Debug/test.dll /tlb /codebase
it registers just fine and ASP can create the object just fine (IF I set APP POOLING to 32 bit=true.)
But how can I register this dll for 64bit version?
I have tried to change the "target CPU:" under compile to x64 but when I want to register the DLL I get " in not a valid .DLL". I even tried regsvr32 but no luck. any suggestion?
NET class library
Sep 09, 2013 01:38 AM|Angie xu - MSFT|LINK
how can I register this dll for 64bit version?
Do you mean that you want to use 32 bit DLL(C#, etc) on a 64 bit machine? If it is this meaning, you can follow the method below,
•Right click on your project in Visual Studio and select Properties,
•On the Build project properties tab ensure that the Platform target drop down reads "x86" instead of "Any CPU"