Can't invoke DCOM call from ASP.NET

Ask a Question related to ASP.NET Web Services, Design and Development.

  1. #1

    Default Can't invoke DCOM call from ASP.NET

    I want to wrap a legacy COM dll within an ASP.NET app. The dll
    incorporates a DCOM call to a remote server and will return data,
    which the ASP.NET application will pass through. Changing either the
    dll or the server interface it speaks to will be difficult.

    I built an Interop wrapper for the COM dll and it runs fine from a
    ..NET console application.

    However, when I try use the same wrapper from within an ASP.NET
    application, it fails. The Event Viewer shows me:

    DCOM got error "No such interface supported " from the computer
    DEVSERV when attempting to activate the server:
    {5001A9D4-6FC0-11D4-8B67-0001023E56B0}


    I've set the IIS default web site directory security user name to a
    valid user account (my own) and have put the line

    <identity impersonate="true"></identity>

    in my project's web.config file.

    Can anyone help? Thanks.
    Ron Baakkonen Guest

  2. Similar Questions and Discussions

    1. Word DCOM on Asp
      Hi to all, I've got a Windows Server 2003 with IIS 6.0. An asp page call by shell an external exe that instance DCOM Word to merge two or more doc....
    2. HOWTO? call dcom within webservice?
      Hello NG, I have the following Problem I have: 1.WebService "TestService" 2.MFC appl with COM Interface 3.A c# froms application ...
    3. DCOM call - Permission denied
      Most places will put a common account/password on both boxes. For example "MTSComponent" and "somegoodpassword". You set the COM package to run as...
    4. DCOM call from an ASP page.
      I have a COM component running on another Windows 2000 server. I want to call that component from the IIS server, which is on another Windows 2000...
    5. Invoke a method in Java webservice thro' soap call from Asp.net client.
      Hi, I am trying to access a java webservice. I know the method's signature. I used 'SoapHttpClientProtocol.Invoke' method. This method is builds...
  3. #2

    Default Re: Can't invoke DCOM call from ASP.NET

    "Ron Baakkonen" <ronnotel@yahoo.com> wrote in message
    news:abd952dc.0311191501.57955c09@posting.google.c om...
    > I want to wrap a legacy COM dll within an ASP.NET app. The dll
    > incorporates a DCOM call to a remote server and will return data,
    > which the ASP.NET application will pass through. Changing either the
    > dll or the server interface it speaks to will be difficult.
    >
    > I built an Interop wrapper for the COM dll and it runs fine from a
    > .NET console application.
    >
    > However, when I try use the same wrapper from within an ASP.NET
    > application, it fails. The Event Viewer shows me:
    >
    > DCOM got error "No such interface supported " from the computer
    > DEVSERV when attempting to activate the server:
    > {5001A9D4-6FC0-11D4-8B67-0001023E56B0}
    It looks as if the DCOM assembly wrapper GAC registrion has not taken place.
    Create a wrapper using AL.EXE
    and place it inside your ASP.NET code... using GACUTIL you can tell the
    environmnet to trust the assembly... if you're environmnent is very save,
    you'll also need to create and place a strong key inside your new assembly
    wrapper using sn.exe, no easy tasks but using the msdn you'll come very far.
    [url]http://msdn.microsoft.com/library/en-us/dnanchor/html/netfxanchor.asp?frame=true[/url]

    besides, using DCOM at a HTTP level server, is not a good choice, because of
    thread blocking it utilizes... A DCOM server is thread affinity tuned while
    ASP and ASP.NET are not.
    >
    > I've set the IIS default web site directory security user name to a
    > valid user account (my own) and have put the line
    >
    > <identity impersonate="true"></identity>
    >
    > in my project's web.config file.
    >
    > Can anyone help? Thanks.
    Egbert Nierop \(MVP for IIS\) Guest

  4. #3

    Default Re: Can't invoke DCOM call from ASP.NET



    Thanks for the reply. I'll play around and see if I can get this to
    work.

    However, it sounds like I should try a different approach. I've got a
    substantial in-house application written in unmanaged C++ (COM/ATL/etc.)
    that supports a bunch of VB clients.

    I would like to make this server available via web services. However, I
    don't want to put the server directly in the DMZ. What is the best way
    to communicate between IIS and my server? I've got a legacy DCOM dll
    that does the job just fine for our VB apps and the simplest thing would
    be to reuse it. However, it sounds like this isn't terribly efficient,
    any suggestion?

    Thanks.



    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Ron Baakkonen Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139