This article describes a workaround for an IIS Browse ASPX page that cannot display an XML page, and a friend who needs to refer to it
When you use IIS to debug an. aspx program, IE prompts the following error:
The XML page could not be displayed. You cannot view XML input using a style sheet. Please correct the error and click the Refresh button, or try again later.
An error occurred while processing resource ' http://localhost/. Line 1th, Position: 2 <%@ page language= "C #" autoeventwireup= "true" codefile= "Main.aspx.cs" inherits= "_default"%> -^
IIS uses 5.1, the default Web version of ASP 2.050727, reinstall IIS or not, and finally looked up a bit of information, knowing this error because the ASP. NET account is not registered in IIS, it may be installed first. framework2.0, installed IIS, or unloaded IIS (this is my case).
The Final Solution:
Start-run--cmd--into c:/windows/microsoft.net/framework/v2.0.50727
Then enter the aspnet_regiis.exe/i command,
After the installation is complete, it will be ready.
IIS uses 5.1, and the default Web site, the ASP version, is 2.050727.
Note:
IIS is installed on XP, limiting the number of connections to 10, and IIS does not have a limit on the number of connections on the WINDOWS2003 Server Edition.
XP installed IIS5 no problem, but the installation of iis6.0 will be missing a lot of files, the General 5.0 version is enough, the general
2003server server operating system with iis6.0.
Install on XP. net4.0 automatically changes the property of the Web site attribute to English.
IIS is a component of Windows, there are some problems with installing IIS on XP machine, need to insert the drive, try to put control panel--Add and remove components--attachment tool--game. Remove the tick from the front of the game. Because some of the content is not compatible, and then reinstall, encountered this problem and resolved in this way.
Mosquito net transfer from: http://www.jb51.net/article/42723.htm