By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,871 Members | 2,575 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,871 IT Pros & Developers. It's quick & easy.

Calling COM+ component from webservice

P: n/a
I am a newbie to ASP.NET and webservices. I have a webservice that is
calling a C# dll. This dll then calls methods in a VB COM+ component.
The COM+ component is not instantiating correctly. The return value of
the called function is an ADO recordset. Looking at the value of the
variable in the watch window, it is undeclared. So, the function is not
completing. I ran this code from a straight WinForms application and it
worked fine. Is there something about webservices that would prevent me
from doing what I am attempting? I got the following message in he
output window:

Interop.Grading QueryInterface for interface Grading._clsGrading
failed. Since the calling of the COM+ component works fine in a
WinForms app, is the problem one of security/permissions?

Thanks in advance for any assistance.

Greg

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
unlike Winforms (or WebForms which support the aspcompat flag), calling STA
(vb6) com components is not directly supported with webservices. you need
to create your own STA thread to manage calls to the component. you only
other option is to host the com object in a com+ application (though there
is a big performance cost).

-- bruce (sqlwork.com)
"Greg Busby" <gr********@checmail.com> wrote in message
news:%2******************@TK2MSFTNGP14.phx.gbl...
| I am a newbie to ASP.NET and webservices. I have a webservice that is
| calling a C# dll. This dll then calls methods in a VB COM+ component.
| The COM+ component is not instantiating correctly. The return value of
| the called function is an ADO recordset. Looking at the value of the
| variable in the watch window, it is undeclared. So, the function is not
| completing. I ran this code from a straight WinForms application and it
| worked fine. Is there something about webservices that would prevent me
| from doing what I am attempting? I got the following message in he
| output window:
|
| Interop.Grading QueryInterface for interface Grading._clsGrading
| failed. Since the calling of the COM+ component works fine in a
| WinForms app, is the problem one of security/permissions?
|
| Thanks in advance for any assistance.
|
| Greg
|
|
|
| *** Sent via Developersdex http://www.developersdex.com ***
| Don't just participate in USENET...get rewarded for it!
Nov 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.