Last post Sep 27, 2013 03:51 AM by Fuxiang Zhang - MSFT
Dec 09, 2008 01:03 PM|neff|LINK
I'm trying to add a web reference to access a web service that was developed by another group where I work. Both of our web apps reside on the same servers, just in different directories. On our first attempt: the web service was deployed on a test machine,
and I was able to successfully add the web reference to my code in VS2005 (right-click in Solution Explorer, select Add Web Reference...), and everything worked fine on the test system. On the second attempt: when deploying to production, at first I thought
just changing the web.config to point from the test server to the production server would be all I needed to do. But I got errors trying that, so I thought the better solution would be to delete the web reference to the service hosted on the test system, and
re-add it, pointing instead to the service hosted on production, then re-compile and re-deploy. However, when I attempt to do this, I get a dialog box with the following error:
<Web Discovery Service>
Unable to download following files from .
Do you want to skip these files and continue?
Note that it just says, "from .", not from a URL. When accessing the asmx file via IE7, I can see all the exposed services, on both test and prod. They look identical.
The only thing that I can see that is different right now is that there are some differences between http and https. The reference I add in test is https, and things work. The prod reference is also https, but note that the error message is only http. Is
there possibly some setting that is different between the test and prod servers? Or could it be in the web service itself? Neither our sys admin or the folks who developed the web service have much experience with this, and have no idea what the issue might
Also, we are not running Microsoft ISA on the web servers.
Dec 10, 2008 05:02 PM|neff|LINK
This has been resolved...sort of. I ended up editing the web.config, wsdl, disco, and discomap files on the production server, changing test to prod. I also had to change the web.config to point to the service using https, not just http, which is the way
it was generated for the test version.
Still no idea why the Web Reference wouldn't work on production, though...
Sep 27, 2013 03:51 AM|Fuxiang Zhang - MSFT|LINK
Thanks for the post.
According to your description, I see that you developed a web service application and it works fine in develop environment.
However it wouldn’t work when deploying to production.
First of all, we must change the web.config to production server. I think your issue is between http and https in production server. Please refer below link.
In above link you will learn how to set the https configuration.
Hope this helps. Thanks.