Registering a dll on 64 bit Windows Server 2008 Standard SP2 IIS 7
It is working now. Following post helped.
Classic ASP using COM+ .Net Interop 64 Bit Windows Server 2008 IIS 7 Server.CreateObject Fails
We needed to install the windows sdk for .net framework 4
http://www.microsoft.com/download/en/confirmation.aspx?id=8279
Then we needed to add the assembly to the GAC
C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\NETFX 4.0 Tools>gacutil /i C:\Windows\Microsoft.NET\Framework\v4.0.30319\File.dll
Then we needed to register the assembly with regasm
regasm /tlb File.dll
learning...
Senior Applications Developer @ National Research Center for College & University Admissions (NRCCUA) http://shapingourfuture.org/ http://DataLab.nrccua.org/ http://www.mycollegeoptions.org/ http://m.mycollegeoptions.org/ http://www.nrccua.org President http://www.ITplate.com Technical Footprint: http://itplate.blogspot.ca/ Skillset Areas C# VB.Net WCF ASP.NET / MVC IIS CSS HTML / 5 JavaScript jQuery SQL Server / TSQL Tableau Kentico
Updated on June 04, 2022Comments
-
learning... almost 2 years
Project: VS2010 C# Class Library. Local machine: Win 7 64bit
Following items changed in the project:
Properties/AssemblyInfo.cs [assembly: ComVisible(true)]
Project/Properties/Build tab: Register Com for Interop: checked Generate Seralization assembly: auto
I have setup the test classes per following post with interfaces, comvisible=true and guids etc: Building a COM interop library for ASP Classic using 4.0 framework and Visual Studio 2010
I was able to register this dll on my local machine via regasm. C:\windows\Microsoft.Net\Framework\v4.0.30319>regasm NrccuaComFileSystem.dll
Types registered successfully.
On the server regsvr, regasm, regasm with tlb all fail with the following message:
RegAsm : error RA0000 : Could not load file or assembly 'file:///c:\Windows\Micr osoft.NET\Framework\v4.0.30319\NrccuaComFileSystem.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
What am i doing wrong here?
Is it looking for an entry point, if yes then totally lost as how to provide that.
Looked at the following post also... Classic ASP using COM+ .Net Interop 64 Bit Windows Server 2008 IIS 7 Server.CreateObject Fails
You can download the test project from here: http://bit.ly/wt5iJz
Thanks.