I built a DLL on my 64bit Windows 7 machine in Visual Studio 2010. The project is a class library. I copied the whole project folder to our 64 bit Windows 2008 Server Web to try and make the library accessible to ASP classic websites we have running on the server.
The server has the 4.0 .NET framework installed. This command:
C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin>gacutil /i c:\portalClasses\portalClasses\bin\debug\portalClasses.dll
Produces this result:
This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.
I would love to know what I've done incorrectly. Thanks for reading.
EDIT:
Per comments from @brentpabst below, I tried the drag and drop method into C:\windows\assembly. After a short hour glass, this command gacutil -l > gac.txt
produces a text file that does not contain my assembly.
The
gacutil.exe
inC:\Program Files\Microsoft SDKs\Windows\v7.1\Bin
is actually for .NET below 4.0.The 4.0 version should be in
C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\NETFX 4.0 Tools
Could you try this one?