开发者

Register .NET DLL for COM Interop in Visual Studio Setup and Deployment project

开发者 https://www.devze.com 2023-02-19 22:59 出处:网络
I\'m trying to register a dll for COM Interop and have the usual issue of it working on my dev machine but not our test server.I\'m attempting to do this in VS2008 using a Setup & Deployment proje

I'm trying to register a dll for COM Interop and have the usual issue of it working on my dev machine but not our test server. I'm attempting to do this in VS2008 using a Setup & Deployment project. I'm then trying to consume the library from classic ASP. The target machine is windows 2003 with SP2, IIS6.

Specifically I'm trying the method suggested by Hans here:

Use Visual Studio Setup Project to automatically register and GAC a COM Interop DLL

Where he says "Set the Register property of the project output reference to vsdrpCOM."

As well as having this set I have the [assembly: ComVisible(true)] in the assemblyInfo of the project in question and the "Register for COM Interop" checkbox ticked.

Finally I have also strongly signed it and added to the GAC in the Setup and Deployment project.

The error I get in ASP is

Server object error 'ASP 0177 : 800401f3'

Server.CreateObject Failed 

Oddly enough I c开发者_如何学运维an reference the registered library in Excel on the server in question and it works fine. So it seems to be registered correctly.

Anybody have suggestions on other things I may have missed?

EDIT: Sorry more details added.


I found the issue - the deployment project automatically has the "Just Me" option checked when doing the installation. Uninstalling and reinstalling with "Everyone" seems to have worked. Silly mistake.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号