473,800 Members | 2,741 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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._clsGra ding
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 1705
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********@che cmail.com> wrote in message
news:%2******** **********@TK2M SFTNGP14.phx.gb l...
| 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._clsGra ding
| 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
14793
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 web-service in a an asynchronous mode (with a callback function)? If so, how?
8
1731
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 information will be used to initiate either a MS Word or MS Excel document. The applications (Word & Excel) reside on the users local system but the database is on the server. Since it is for internal company use I'm not too concerned about...
1
6741
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 this WebService1. (using Apache Axis 1.1) Scenario 1: -----------
4
10961
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 application written in VB6 and (if possible) avoid packaging a dotnet component with this VB6 application. The client wants the client app used on sales machines which don't have the
1
2248
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 that page the webservice method does'nt work. So how shud i solve this.
0
958
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 in a webservice which i've tested fine in the browser. What i need to do now is allow the clients VB program to still use SOAP to call this new Webservice instead of the COM component.
2
4689
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 using.... ......................... Dim Connector As SoapConnector30 ' To connect to webservice Dim Serializer As SoapSerializer30 ' To serialize the XML data Dim Reader As SoapReader30 ' To read the Webservice response...
1
1167
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 on a Windows2003 Server and the COM-component runs on a Windows2000 Server. How can I connect with this COM?
4
2512
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 webservice and using a COM component is scalable. I have heard there are problems with this revolving around the apartment threading models. I know COM dll's are STA and a WCF service is MTA. Since there is no way to force a WCF service to be STA, I...
0
9690
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9550
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10273
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10032
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7574
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6811
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5603
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4149
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2944
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.