XML Parsing Error: no element found Location: http://localhost/Test/TestService.asmx Line Number 1, Column 1:
I created a Web service in VS 2008 and hosted it in IIS but when trying to oprn it in brwoser it throws this error.
Any 开发者_StackOverflow中文版help will be appreciated.
Thanx
- Don't open it in a browser. Write a unit test to call the service. How the service behaves in the browser may not be how it behaves in real life.
- Use Fiddler to watch the network traffic. You'll see interesting things.
- I bet the reason you've got an XML parsing error is that XML isn't what's being returned from the server. I bet you've got text or HTML telling you there's been an error in your web service.
精彩评论