I am trying to call a web service from asp.net 3.5 application. I have a URL that has the DNS in it and when it is used I get the following Error.
(the xxxxxx is there for privacy concerns)
The request failed with the error message: — 301 Moved Permanently
Moved Permanently
The document has moved here.
When I use the URL with the physical IP it works just fine. Are there any setting that I am missing. I currently have the URL behavior set to dynamic so that it uses the url from the webconfig.
If you are using a Web Reference, then you can set the
AllowAutoRedirectproperty of the proxy instance to true. In this case, the redirection will happen behind the scenes.