• Register
0 votes
46 views

While using asp.net everything looks fine to me but this tiny little annoying error message. Does it come from the browser? or from other sources?

it looks like –

xml parsing error: no root element found Location: .......

Any help would be appreciated as I’m still a beginner.

Thanks.

10 7 2
6,060 points

2 Answers

0 votes

xml parsing error happens for few of many reasons I know by researching about the problem before.

→ Not setting the proper content type of response - the controller you use while developing ASP.NET expects the response page to be of XML but it gets a blank HTML document.

→ Sometimes it happens with firefox browser as well, if the render page is empty.

You may want to try several following ways and see if anything works for you to get rid of:

=> make sure no closing tag is missing on your page's html

=> add the following line to your .cs page to tell ASP.NET that the response you are sending is a HTML text not that expected XML

Response.ContentType = "text/HTML"

Let me know if you can find any other solution that works for you. 

11 6 4
34,950 points
0 votes

This issue occurs due to the pipeline mode in your application pool settings that your website is set to.

Short method:

In this method, two procedures can be applied;

  1. Change the Application Pool mode the one that has classic pipeline enabled. This adds the following line of codes;
 <system.webServer>

     <validation validateIntegratedModeConfiguration="false" />

 </system.webServer>
  1. Your web.config will be needed to alter to support the integrated pipelines. This is as simple as removing the parts of your web.config.

The use of the first approach is bad practice. So, it is suggested to use the second approach.

Long method:

The best solution is to change your application to support the integrated pipelines. There is a number of changes between the IIS6 and IIS7.x that will raise an error message.

If you are unable to do that then you have to change the App pool which may be more difficult to do and totally depends upon the availability of your web server.

  • Go to the webserver.
  • Open the IIS manager.
  • Navigate to your site.
  • Click on the Advanced Settings on the right Action pane.
  • Under Application Pool, change it to the app pool that has classic enabled.

Note:

If you can access the server after these changes, then do this through the hosted server and contact them for help.

 

11 5 1
3,890 points

Related questions

0 votes
1 answer 7 views
7 views
Problem: Hi, I want to take multiple employee ids in one shot from the user and need to assign them to list .in asp.net, pls help me to sort it out. What I have tried. I have created a text box and tried with validator but it didn't worked out.
asked Sep 14 boris elin 620 points
0 votes
1 answer 11 views
11 views
Problem: Using Javascript in C# var txtElecType = $("#txtElecType_" + RowID + ""); txtElecType.css("border", "1px solid red"); var txtElecType = $("#txtElecType_" + RowID + ""); txtElecType.css("border", "1px solid red"); var txtElecType = $("#txtElecType_" + RowID + "" ... ("border", "1px solid red"); var txtElecType = $("#txtElecType_" + RowID + ""); txtElecType.css("border", "1px solid red");
asked Sep 14 boris elin 620 points
0 votes
1 answer 9 views
0 votes
1 answer 10 views
10 views
Problem: I am naive to Asp.Net.I am having a weird looking problem where I am trying to open up my ASP.NET MVC application but I am receiving the below ASP.NET error page which says: Server Error in '/' Application. The resource cannot be found. Description: ... unknown reason to me it seems like it is actually searching for the .aspx file. Please guide me if you think I am missing something.
asked Aug 19 Raphael Pacheco 4.9k points
0 votes
1 answer 3.1K views
3.1K views
Problem : I want to send a call using ajax but in Chrome getting following error Failed to load resource: the server responded with a status of 500 (internal server error) But for firefox getting no error. I also tried to record the ajax call in firebug but there is no call request in ... function (msg) { }, error: function (xhr, status, error) { alert(error.responseTextss); } }); }); }); }); }
asked Nov 22, 2019 peterlaw 6.9k points