Last post Oct 23, 2012 06:39 AM by iLens
Oct 22, 2012 11:59 AM|iLens|LINK
When I try and consume my web service (the service and consumer are in the same solution) I get a .net error message...
Web exception was unhandled...
The request failed with the error message: -- <html><head><title>Object moved</title></head><body> <h2>Object moved to <a href="%2fWSEntrant.asmx%3fAspxAutoDetectCookieSupport%3d1">here</a>.</h2> </body></html> --.
The consumer code is
String = svcMember.download("TEST",
and the web Refrence URL in the reference is
The server class has a prefix with
Public Class WSEntrant
and the function header is
Oct 22, 2012 05:28 PM|kushalrdalal|LINK
After creating did you hosted your web service to IIS?
If not then you have to host that service and then you can consume that web service.
If you are using third party service then have you try adding the service or web reference and then try consuming it.
Oct 23, 2012 02:43 AM|Steven Cheng - MSFT|LINK
The error message you provided indicates that there occurs an redirection at server-side. For example, when you try to access service1.asmx, the server-side make a redirect to another location (either your service code or some other code at http module
of ASP.NET or IIS runtime). Have you checked if there is any of such modules configured at service-side that will cause this issue?
Also, is the service a simple HelloWorld one? If not, you can creating a helloworld one from scratch for test and make it working first. And for webservice (use SOAP HTTP) debugging, the fiddler web debugger is quite helpful which can help capture the HTTP
communications and let you inspect the message details.
#fiddler web debugger
Oct 23, 2012 06:39 AM|iLens|LINK
I've found the problem... I run with
<sessionState mode="InProc" cookieless="AutoDetect" regenerateExpiredSessionId="true" timeout="60"/>
in the web.config because I need session data but some of my users have cookies disabled.
It seems IIS appends "AspxAutoDetectCookieSupport=1" to the URL even though it is a web service
Any ideas how to get round this?