XML parsing error: no items were found. Location: http: // localhost: 8000 / web.config Line number 1, column 1

I am new to WCF and IIS, and when I try to host a web service in IIS and open it in a browser, this shows me the XML parsing error above. I tried all the items mentioned in related posts, but it does not seem to work. Is there any solution I could skip?

EDIT: I followed all the steps as indicated here. http://www.youtube.com/watch?v=SVPXLF-g4Ws ... But I still get the same XML parsing error when I try to host this service in IIS. If possible, can anyone try following this video and tell if it works. thanks

+4
source share
4 answers

There can be many things that will cause this. If you use some third-party libraries, for example, in this mail , check the bin folder. Another suggestion is to put Global.asax in the root application and try to catch a more detailed exception in Application_Error.

+2
source

In my service web.config file, I ended up setting the endpoint attribute "Address" to an empty line. Fixed right when updating.

<endpoint address="" binding="basicHttpBinding" bindingConfiguration="AgentServiceBinding" contract="HBW.Services.Agent.IAgentService"> </endpoint> 
+1
source

This can happen if your web.config file is empty. If so, try using the built-in Visual Studio Debug / Export to automatically create the web.config file.

0
source

I had the same problem and reloading my site in IIS solved my problem. If other options do not work, try this.

0
source

All Articles