Classic ASP using COM+ .Net Interop 64 Bit Windows Server 2008 IIS 7 Server.CreateObject Fails

前端 未结 3 1642
清酒与你
清酒与你 2020-12-22 02:07

I am having an issue related to executing a .Net dll from a classic asp application on a 64 Bit Windows Server 2008 server running IIS7. The situation is as follows:

<
相关标签:
3条回答
  • 2020-12-22 02:56

    After a lot of help here and some more research, we finally came across the answer. To solve our issue we did the following:

    • No longer inherit from ServiceComponent (This is ok, since we are not actually leveraging any specific COM+ features)
    • Utilized the following commands to install the component, which must be done in order:

      gacutil /i "C:\Inetpub\wwwroot\ASPTest*name of dll*"

      regasm /tlb "C:\Inetpub\wwwroot\ASPTest*name of dll*"

    This process eliminated the original errors and also had the added benefit of being able to replace the dll while IIS is running.

    0 讨论(0)
  • 2020-12-22 03:11

    Try this

    Component Services -> Computers -> My Computer -> COM+ Applications

    Open a COM+ Application object.

    Open Components.

    Right-click on a class and select Properties.

    Under "Advanced" there is a check box for "Allow IIS intrinsic properties".

    It works for me

    0 讨论(0)
  • 2020-12-22 03:12

    Create a vbs test file and try to create your COM object there. If you can't (i.e. you get the same error) then your component is not registered correctly. If you can - then it was installed correctly and the problem is with the lack of permissions for the account your application is executed under in IIS.

    0 讨论(0)
提交回复
热议问题