XML解析错误:没有的元素中找到位置:http://本地主机:8000 / web.config中1号线,1列 [英] XML Parsing Error: no element found Location: http://localhost:8000/web.config Line Number 1, Column 1
问题描述
我是一个新手,WCF和IIS,当我尝试举办IIS中的Web服务,并在浏览器中打开它,它让我看到上面的XML解析错误。我试着在相关的帖子中提到的所有的点,但它似乎没有工作。有没有办法,我可能会错过任何解决方案?
I'm a newbie to WCF and IIS, and when I try to host a web service in IIS and open it in the browser it shows me the above XML Parsing error. I've tried all the points mentioned in related posts, but it doesnt seem to work. Is there any solution that I might have missed out?
编辑:我遵循所有的步骤严格按照赘述。 http://www.youtube.com/watch?v=SVPXLF-g4Ws ...但是,我仍然得到同样的XML解析错误,当我尝试主办IIS服务。如果可能的话,任何人都可以尝试下面的视频和告诉我,如果它的工作原理。谢谢
i followed all the steps exactly as mentioned here. http://www.youtube.com/watch?v=SVPXLF-g4Ws ... But , i still get the same XML parsing error when i try to host the service in IIS. If possible, can anyone try following that video and tell me if it works. Thanks
推荐答案
有可能很多事情会导致此。如果您使用的是一些第三方库就像这个帖子,检查bin文件夹。另一个建议是把在Global.asax中应用的根源,试图抓住更详细的异常中的Application_Error。
There may be many things that will cause this. If you are using some 3rd party libraries like in this post, check bin folder. Another suggestion is to place Global.asax in root of app and try to catch more detailed exception in Application_Error.
这篇关于XML解析错误:没有的元素中找到位置:http://本地主机:8000 / web.config中1号线,1列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!