COM instantiation hangs in web method

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

  1. #1

    Default COM instantiation hangs in web method

    I have a web service running on localhost. In this web method I am instantiating a COM object as follows

    dim obj as New MyCOMObject 'The dll for the COM object is registered on localhost (using regsvr32) and is in C:\ roo

    When I test this web service from a VB script client (which prepares a SOAP request using MSXML XMLHTTP object), all works fine and I get a result (SOAP request returns successfully with the expected result value, an order number
    But when I call this web service in a web form client, it hangs. So, I debugged the web service, I step through it and see that the call hangs at above line where it tries to create an instance of COM object
    I thought its a security issue, I tried with impersonation in web.config as follows

    <identity impersonate="true" userName="domain\myUser" password="****"/>
    "myUser" is in admin group on localhos

    Still does not work

    Amyn Guest

  2. Similar Questions and Discussions

    1. WebService class instantiation
      I have a question regarding WebService class instantiation through ActionScript for Flex. Everywhere I have seen the WebService class...
    2. com instantiation
      :confused; Using CFMX 6.1 and have been tasked with calling a 3rd party com object. So far only getting instantiation error when using cfobject. ...
    3. CF hangs when database server hangs or crashes
      This may be as simple as a configuration change, but hoping someone understands this behavior and can offer suggestions (or at least additional...
    4. Class Instantiation in PHP5
      I need to do something like the following with php5.0.1 and it's not working no matter what I try... Any suggestions? class foo extends blah{...
    5. Instantiation
      Here's a general question. When should I instantiate, and when should I not? Is an instantiated object necessarily a controller? Should I even...
  3. #2

    Default Re: COM instantiation hangs in web method

    Do you get any specific error message?

    --
    Teemu Keiski
    MCP, Microsoft MVP (ASP.NET), AspInsiders member
    ASP.NET Forum Moderator, AspAlliance Columnist
    [url]http://blogs.aspadvice.com/joteke[/url]


    "Amyn" <anonymous@discussions.microsoft.com> wrote in message
    news:ACDFDA54-4B70-42CA-8B9D-E34ADA310549@microsoft.com...
    > I have a web service running on localhost. In this web method I am
    instantiating a COM object as follows:
    >
    > dim obj as New MyCOMObject 'The dll for the COM object is registered on
    localhost (using regsvr32) and is in C:\ root
    >
    > When I test this web service from a VB script client (which prepares a
    SOAP request using MSXML XMLHTTP object), all works fine and I get a result
    (SOAP request returns successfully with the expected result value, an order
    number)
    > But when I call this web service in a web form client, it hangs. So, I
    debugged the web service, I step through it and see that the call hangs at
    above line where it tries to create an instance of COM object.
    > I thought its a security issue, I tried with impersonation in web.config
    as follows:
    >
    > <identity impersonate="true" userName="domain\myUser" password="****"/>
    > "myUser" is in admin group on localhost
    >
    > Still does not work.
    >

    Teemu Keiski Guest

  4. #3

    Default Re: COM instantiation hangs in web method

    No, I see that debugger hangs at the line where COM object is instantiated
    Amyn 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