XML Parsing Error: not well-formed

XML Parsing Error: not well-formed
Location: http://localhost/dotnetnuke/Install/Install.aspx
Line Number 1, Column 2:<%@ Page language=”vb” AutoEventWireup=”false” Explicit=”True” Inherits=”DotNetNuke.Services.Install.Install” CodeFile=”Install.aspx.vb” %>

Đây là lần thứ 2 bị lỗi này, có tài liệu hướng dẫn kế bên nhưng ko sửa được mà phải lên Google search. Lý do: gặp ký hiệu %Windir% thì phải chạy vào thư mục cài đặt Windows, đằng này lại vào… “Program Files”, hix… <~~ HẾT THUỐC

Post lên để lưu truyền lại cho con cháu đời sau, xem như kinh nghiệm được upgrade từ version 1.0 lên 1.0.1 (hy vọng đây là bản finall của trường hợp này)

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.

Fix the ‘XML Parsing Error’
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.

ASP.NET 2.0 Framework
%Windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i

ASP.NET 1.1 Framework
%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.

Why did you get this error ?
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.

Nguồn: http://theshiva.us/technicalblog/archive/2007/03/26/fix-for-asp-net-xml-parsing-error-not-well-formed-line-number-1-column-2.aspx

1 Comment »

  1. 1
    tuan loc Says:

    bai viet rat hay, good good, cam on nhieu nha ^_^

RSS Feed for this entry

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: