Wrox Programmer Forums
|
ASP.NET 1.x and 2.0 Application Design Application design with ASP.NET 1.0, 1.1, and 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.x and 2.0 Application Design section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 8th, 2005, 07:08 PM
Registered User
 
Join Date: Jan 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default COM object in web service

I have made a simple web service in Visual Web Developer 2005 Express Edition Beta. It runs ok when testing it from the development environment runing on the web server that comes with the VWD. But when runing the service from IIS 5.1 with .NET framework 2 Beta installed I always get an error when calling the COM object. I created a virtual directory in the IIS refering the directory made by the VWD and have a refence to the COM in the form of Interop.objectname.dll in the Bin directory.

What am I doing wrong or not doing right when running from IIS?

Thanks in advance,
Kristinn

 
Old March 9th, 2005, 02:33 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

I am not sure why you are calling COM objects. After all, you've created a Web Service, right? What do you need COM for?

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old March 13th, 2005, 03:50 PM
Registered User
 
Join Date: Jan 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Actually I should have called it an ActiveX as that is what it is. I'm using the web service to communicate with an older software that has an ActiveX to comunicate over the internal network. When it works, like when it's run in the Visual Web Deweloper environment, it's quite simple to use and saves a lot of programming.

I'm wondering if the calls to the ActiveX works from the development environment shouldn't it also work from the standalone web service (when the code has been moved to the IIS server)? Are there som setings I need to do manually?

Kristinn

 
Old March 13th, 2005, 04:03 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

I don't think I understand the problem. Can you provide more detail about your setup?

What talks to what and how? Can you show us some code? And did you register the Active X dll (I assume it's a DLL) on the other server?

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: You Don't by Tricky (Track 10 from the album: Maxinquaye) What's This?





Similar Threads
Thread Thread Starter Forum Replies Last Post
Web Service Consuming another web service CraigWhitfield EJB 0 January 10th, 2008 08:38 AM
Error to Add Web Reference from a Web service jdjbarrios ASP.NET 2.0 Professional 0 July 18th, 2006 02:58 PM
Error Serializing an object in a web service gabrieldcr2 .NET Web Services 1 December 12th, 2005 04:41 PM
Service Oriented Web Service aldwinenriquez .NET Web Services 2 September 15th, 2005 03:25 AM
Object as parameter in a web service method evandro.paula .NET Web Services 3 October 14th, 2003 02:20 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.