• Register
0 votes
98 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 9 views
9 views
Problem: Can anyone tell me Why I got Xml parsing error: no root element found?
asked Mar 5 ummesalma 29.2k points
1 vote
1 answer 3 views
3 views
Problem: I&rsquo;m getting this error : SqlException was unhandled by user code A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is ... My code : SqlConnection myConnection = new SqlConnection("server=localhost;" + "Trusted_Connection=yes;" + "database=mmcinfo.mdf;");
asked May 4 Raj Tyagi 15.6k points
0 votes
1 answer 7 views
7 views
Problem: I am unable to understand this problem .. Please suggest me a better solution to solve it .. Upload excel file in asp.net c# to sql server
asked Apr 27 Ifra 37.2k points
0 votes
1 answer 4 views
4 views
Problem: I am trying to play a video from video path that I have in database. But I'm not sure how to play it dynamically directly from the database in asp.net using c#?
asked Apr 16 muktaa 34.6k points
0 votes
1 answer 4 views
4 views
Problem: Hi, I need some help.When I am using GridView along with SqlDataSource, for selecting, updating and deleting, and DetailsView for Inserting, the problem is, when I click one of these buttons, I get this error for the Delete order (and the same error with ... " /> <asp:Parameter Name="BloodGroup" /> <asp:Parameter Name="Disease" /> </InsertParameters> </asp:SqlDataSource> </asp:Content>
asked Apr 11 ochena 23.3k points
0 votes
1 answer 4 views
4 views
Problem: I'm having trouble processing this error: It is required that the operation be exported or include an intent-filter. How to create a website using asp.net with c# in visual studio.
asked Mar 30 tuhin1 48.9k points
0 votes
1 answer 10 views
10 views
Problem: As I previously stated in my question, I am having difficulty learning. Could someone help assist me in completing my project?
asked Mar 30 tuhin1 48.9k points
0 votes
1 answer 5 views
5 views
Question: I am using NI Measurement Studio 2012 free evaluation under Visual Studio 2008 express and Windows XP. My problem is the following: I can compile my C# solution without problems but in run time I get an unlicensed assembly error message related to PropertyEditor when trying to instantiate this: new PropertyEditor(); Can anyone help me to solve this? Thanks in advance.
asked Apr 20 munim01 21k points
1 vote
1 answer 13 views
13 views
Problem: How to fix this erro:the activity must be exported or contain an intent-filter. xml parsing error not well formed location
asked Mar 7 MUHAMMAD MUNEEB 83k points
0 votes
1 answer 10 views
10 views
Problem: Does anyone know the solution of it? So kindly let me know .. Asp net mvc 4 sample project download
asked Apr 27 Ifra 37.2k points