473,396 Members | 1,826 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Calling COM+ component from webservice

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
1 1687
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
by: Patrick | last post by:
I am almost certain that I could use HTTP Post/Get to submit XML Web Service call (over SSL as well, if using Version 3 of MSXML2) from an ASP Application? However, would I only be able to call...
8
by: Rob Kellow | last post by:
Hello, I'm working on an application for use within my company on our intranet that will be used to gather some information and store some of the info in a SQL Server database and the rest of the...
1
by: Lakshmi | last post by:
Hi All, I am having performance issues with the .NET client calling the Java Webservice running on axis. Have detailed the problem below. Please help. I wrote a webservice in Java. Lets name...
4
by: lozd | last post by:
Hi, I'm building a web service for a client and would like to know if it's possible to achieve it the way they'd like it. Basically I need to call a dotnet web service from a client...
1
by: batista | last post by:
Hi, I'm using webservice.htc to call a non-secure(without https) webservice method from a webpage. Now, if the webpage is not under https then everything works fine. But, when enable ssl in...
0
by: TimHortonAddict | last post by:
Hi, I'm trying to change from a Vb6 COM component to a C#.Net webservice as we move from Windows server 2000 to Windows server 2003. I've recreated the functionality of the the COM component...
2
by: rakesh kumawat | last post by:
I am facing a problem while reading the result which is loaded in DOMDocument. In which I am sending a request to web service and getting a record of Single Order. This is my VB Code which is i am...
1
by: Häussler Rainer | last post by:
Hi to All! I'm complete new to .Net and I have the following problem: I have to write a .Net WebService in C# which has to pass a XML to a Com-component to another Server. The WebService runs...
4
by: =?Utf-8?B?Y2hyaXNjYXA=?= | last post by:
I tried searching the forums for this already and didn't find anything. I want to expose functionality from a vb6 COM component via a WCF service. I am trying to evaluate if exposing this...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.