Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / December 2004

Tip: Looking for answers? Try searching our database.

PROBLEM: .NET webservice proxy class as COM

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Smugsboy - 28 Nov 2004 13:02 GMT
Hi,
I have a problem with a web service proxy written in .NET and used
from VS6's C++ as COM object.
This proxy works great when used from a .NET application.

It does not seem to work when used as COM object for C++ application.
What happens is this: I've created a class with the following
attribute [ClassInterface(ClassInterfaceType.AutoDual)] that inherites
from this proxy class.
This class is regisered using regasm.exe and installed using
gacutil.exe.

Afterwards, I tried to use it from C++ application using the #import
macro.
Methods that access the web service fail with a timeout exception,
methods that do not access the webservice work great.

Any ideas ?

Thanks,
Dan Rogers - 02 Dec 2004 01:37 GMT
Hi,

Did you add the GuidAttribute to your class?  Did you set the project
option "auto generate COM interop assemblies" and then register the type
libs as well?

Regards

Dan Rogers
Microsoft Corporation
--------------------
From: smugs_boy@yahoo.com (Smugsboy)
Newsgroups: microsoft.public.dotnet.framework.webservices
Subject: PROBLEM: .NET webservice proxy class as COM
Date: 28 Nov 2004 05:02:23 -0800
Organization: http://groups.google.com
Lines: 20
Message-ID: <ac4b82a7.0411280502.767b1589@posting.google.com>
NNTP-Posting-Host: 192.198.152.97
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1101646943 9783 127.0.0.1 (28 Nov 2004 13:02:23
GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Sun, 28 Nov 2004 13:02:23 +0000 (UTC)
Path:
cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.s
ul.t-online.de!t-online.de!news.glorb.com!postnews.google.com!not-for-mail
Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.webservices:7666
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices

Hi,
I have a problem with a web service proxy written in .NET and used
from VS6's C++ as COM object.
This proxy works great when used from a .NET application.

It does not seem to work when used as COM object for C++ application.
What happens is this: I've created a class with the following
attribute [ClassInterface(ClassInterfaceType.AutoDual)] that inherites
from this proxy class.
This class is regisered using regasm.exe and installed using
gacutil.exe.

Afterwards, I tried to use it from C++ application using the #import
macro.
Methods that access the web service fail with a timeout exception,
methods that do not access the webservice work great.

Any ideas ?

Thanks,

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.