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 / November 2003

Tip: Looking for answers? Try searching our database.

DCOM relay via WebServices

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dave Edson - 01 Nov 2003 22:41 GMT
Hello,

I have a legacy DCOM "server" running on Machine A.

I have a C# .NET windows application running on Machine B.

The app running on machine B can access the DCOM server just fine and call
its methods.

If I build a C# Web Service on Machine B, and have that web service try to
access the DCOM server, it barfs. I am literally using the Hello World Web
Services application generated by the new project wizard, I add nothing but
the COM reference to my DCOM object, and then I create a new object and
invoke the method. As mentioned above, the exact same lines of code work in
a regular Windows applicaion.

The barf happens when I invoke the method. I get an 500: Server Error
message in the IE window when I click the Invoke button from the
VS.NET-generated page.

I suspect there is a security setting I need to change.

Can anyone help?

Thanks!
Dave Edson
Dave Edson - 01 Nov 2003 22:46 GMT
More information:

After turning off the friendly error messages, I find this is the error:

   System.InvalidCastException: QueryInterface for interface xx.yy failed.

Of course, I still don't know why.

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.