COM instantiation hangs in web method

A

Amyn

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
 
T

Teemu Keiski

Do you get any specific error message?

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


Amyn said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,821
Latest member
AleidaSchi

Latest Threads

Top