• Register
0 votes
75 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

Please log in or register to answer this question.

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 2
3,890 points

Related questions

0 votes
1 answer 13 views
13 views
Problem: When I try to upgrade my database from Mvc-AngularJs to wcf-Rest, I get an error like Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:9706/EmployeeService.svc/UpdatexyzData/Update/but with the same ur when I try to get ... : { 'Accept': 'application/json', 'Content-Type': 'application/x-www-form-urlencoded ;charset=utf-8' } }) return ss; }
asked Jan 24 sasha 8.4k points
0 votes
1 answer 2 views
2 views
Problem: ccavenue payment gateway integration in asp.net c# example
asked 2 days ago Dan phillip 1.8k points
0 votes
1 answer 12 views
12 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, 2020 boris elin 620 points
0 votes
1 answer 14 views
14 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, 2020 boris elin 620 points
0 votes
1 answer 10 views
0 votes
1 answer 23 views
23 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, 2020 Raphael Pacheco 4.9k points
0 votes
1 answer 3.2K views
3.2K 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
0 votes
1 answer 1.7K views
1.7K views
Problem : I recently tried to import the sample Android games which I downloaded from Google's developer website. After importing them into my Android Studio, I am getting the below error: Error: SDK location not found. Define location with sdk.dir in the local. ... file or with an ANDROID_HOME environment variable. What is this error means? I want to run my sample programs from a Android Studio.
asked Jan 24, 2020 jwilliam 3.9k points
0 votes
1 answer 17 views
17 views
Problem I am newbie to C# I am confused by .Net Garbage Collection logic. When does GC free memory?
asked Oct 8, 2020 alexh 2.4k points
0 votes
0 answers 26 views