Why can't I display the XML page when I browse the aspx page in IIS?

Source: Internet
Author: User

When you use IIS to debug the. aspx program, the following error occurs in IE:

The XML page cannot be displayed.
You cannot view XML input using a style sheet. Correct the error and click Refresh or try again later.
An error occurred while processing the resource 'HTTP: // localhost. Row 1st, Location: 2
<% @ Page Language = "C #" AutoEventWireup = "true" CodeFile = "Main. aspx. cs" Inherits = "_ Default" %>
-^

Iis uses 5.1. The default website ASP. NET version is 2.050727, iis is reinstalled or not, and finally some information is checked, this error is due to ASP. net account is not registered in iis, it may be installed first. net framework2.0, iis is installed again, or iis is uninstalled and overloaded (this is my case ).

The final solution:

Start -- run -- cmd -- enter C:/WINDOWS/Microsoft. NET/Framework/v2.0.50727

Then input the aspnet_regiis.exe/I command,

After the installation is complete, you can.

Iis uses 5.1, and the default website ASP. NET version is 2.050727.

 

Note:

When iis is installed on xp, the number of connections is limited to 10, while iis on Windows2003 server does not have the limit on the number of connections.

There is no problem with iis5 installation on xp, but there will be a lot of files missing when installing iis6.0. Generally, version 5.0 is enough.

Iis6.0 is used for the operating system of the 2003server server.

When you install. net4.0 on xp, the attribute ASP. Net of the website is automatically changed to English.

Iis is a component of windows. If iis is installed on some xp machines, some problems may occur. You need to insert a drive and try to add or delete the control panel, the attachment tool, and the game. Remove the check box before the game. Because some content is incompatible, You can reinstall it. You have encountered this problem and solved it in this way.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.