What could be causing an XML Parsing Error: no element found?

前端 未结 15 1838
刺人心
刺人心 2020-12-20 11:49

I recently migrated an ASP site from my dev machine to a live server. All the pages except my FAQ page works just fine, but my FAQ brings up:

XML Parsing Er         


        
相关标签:
15条回答
  • 2020-12-20 12:27

    I had the same issue. It was caused because I handled exceptions in global.asax, and called Server.ClearError(), without calling a Response.Redirect or similar. I guess, that the code failed and the error was removed, so asp.net could not display an errormessage, nor could could it display the requested page.

    I have also received this error, because I overrided the render method of the page, and forgot to call base.render(writer), thus sending an empty page to the browser.

    0 讨论(0)
  • 2020-12-20 12:29

    I had this problem on all of my pages when I deployed to IIS, solution turned out that the account the app pool was running under didn't have enough privileges to connect and execute database queries

    0 讨论(0)
  • 2020-12-20 12:33

    I found this issue because URL was redirecting to a different location. Correcting that resolved the issue.

    It was redirecting to http://localhost/forms/abc.aspx, however it should have been redirected to http://localhost/projectname/forms/abc.aspx

    0 讨论(0)
  • 2020-12-20 12:33

    The site is developed in ASP.NET, not XML. Does this have any bearing on the problem?

    0 讨论(0)
  • 2020-12-20 12:34

    I was facing the same issue. My solution may not apply to ASP.NET, I am working in node/express land. My API endpoint was not returning any data in the response:

    return res.status(200).end();
    

    When I included something in the data response it resolved the issue:

    return res.status(200).send('ok').end();
    
    0 讨论(0)
  • 2020-12-20 12:35

    Maybe some encoding problems, corrupted 'unicode sequence' in the beginning of your file or something of this nature?

    0 讨论(0)
提交回复
热议问题