When you access an ASP.NET page in your browser, you may get an XML Parsing Error that says that the XML is not well formed. The error message also displays the page directive statement present in the 1st line of the .aspx file. First we will fix this error, then we will look at one possible reason why you may be getting this error in ASP.NET.

Click Start > Run, and type the following command depending on which ASP.NET framework is in use by the default web site in your IIS.
%Windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i
%Windir%\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis.exe -i
You should see a command window that is displayed briefly, that shows that ASP.NET is being installed. After the registration is successful, the window will be closed. 
Now refresh the .aspx page that you got the XML Parser error for in the browser and your page should be rendered correctly.
I have seen this error happen to me in situations where I had installed IIS after the installing the .Net Framework. This make sense. If you install IIS after you install the .Net Framework, then the framework is not registered with IIS. So when a request for a .aspx page comes to IIS, it simply passes on the contents of the page as-is without processing it. So in effect, the browser receives the entire .aspx page’s code, tried to parse it as an XML file, encounters the parsing error at the second character in the page directive and stops.
Related: ASP.NET IIS Registration Tool
Thanks for the tip! I am a asp.net newbie, and this really helped me to get started with learning it.
-Naved
Thanx, this helped me a lot :)
Thank you very much. It works
Cheers worked.
Thanks! This is a very clear and concise page and helped me out big time! Cheers!
Thank you very much! It worked…
thanks a lot. It really helped.
thanks man it really helped me
great thinking
This is very clear and it is working for me now.
Thanks a lot!
On secured machines, this may also be caused if you’ve removed mappings for particular files in the IIS Manager. If this is happening, go into the IIS Manager, right-click on your web, choose properties. Then click the Home Directory tab and the Configuration button.
Make sure the Application Extension for that particular extension is mapped to the aspnet_isapi.dll and at least the verbs “GET,POST” are in there.
Thank you so much….very helpful tip…working for me now..thanks :)
I just google my problem and found this. Correct and perfect answer, thank you guy!
thank you! as others have said, this works perfectly. :)
i am new to asp.net … i developed a website in VS in which I access an XML file ..i wanted it to run as a browser independent one . I wrote different codes for IE and other browser both the codes were running well individually but when i combine them … it works well in IE but it does not work in MOzilla and i get the above error. Please help me out …..
thanks a bunch!!
Thanks so much, it really help me!!
I solved this problem, all my files were read only…and i unchecked read only…And it works..
I want to run an aspx file after uploading it to remote server. When i tried to run in browser, the same error is appearing. I didnt find any property in IIS manager of the server.Please help me.
Thank you so much.
It has solved my problem.
Really Thanks from the heart.
Thanks i am asp.net developer and this problem is really troubling me
THX U wery much, real help for newbies
Great work man
thanks,i have solved my problem.
this is excellent,not because u give solution,but u given solution of issue,and also why it happens.
thank u again.great
Within the website’s properties, there’s a tab for ASP.NET. My ASP.NET version was blank, but 2.0.50727 was listed in the drop-down menu. Choosing this version and hitting apply worked for me.
There’s a tab for ASP.NET in the website properties within IIS. My ASP.NET version was blank, but 2.x existed in the drop-down menu. Choosing this version and pressing apply solved my problem (well, I get a different error, but one that’s my fault).
Cool stuff, thanks a lot, very helpful.
My boss was very angry at me.Thanks so much for the support.
Hey, thanks!!!!
It worked!! :)
Thank you Sir
it helps me a lot
Thank you very much.
hello,
Thanks a lot for ur answer.. it helped me a lot.
nice try..this did not work for me..any other possible causes?
Cheers, worked a treat!
when i try to run my web with vs.net it works properly. And when i run it without vs.net this comes out. please help me. here is my email. siedexxx @ yahoo.com please send me ideas. i cant go on with my projects -_-
Thanks for this Tip!!
It really worked.
Thanks for help..
Thanks for the tip! I am a asp.net newbie, and this really helped me to get started with learning it.
google brought me to yr spot and i don’t regret it.
good work!
Thanks for all the efforts
thank you, it worked! just like carl, are there any other causes?
Thanks, you save my day!!!
Thank you very much!!!
I started to go nuts about this!
Thanks a lot.
I am really thankful keep it up to solve people’s problem God bless you and your team.
You are a god among gods. I spent hours manually trying to figure out what the hell was going on. Many thanks.
Thanks a lot !!
This problem suffered me a lot
Thanks again :)
I don’t know but i still get the error
Thank you….It really helped
Thanks! I don’t understand it, but it’s fixed which is all I care about! Awesome!!!!
Thank you very much. Most importantly u have mentioned the reason for the cause that is a great help.
Thanks. But i see an error Server Application Unavailable