Solution to "unable to display XML page" during ASP. net2.0 page running

Source: Internet
Author: User
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.
--------------------------------------------------------------------------------
Process resources Http: // localhost/Asp.net/Default.aspx Error. Row 1st, Location: 2

<% @ Page Language = "C #" AutoEventWireup = "true" CodeFile = "Default. aspx. cs" Inherits = "_ Default" %>
-^
----------------------

Analysis: this error occurs because the asp.net account is not registered in iis. The possible cause is that. net framework 2.0 is installed before iis, or iis is uninstalled and reinstalled. Solution: Method 1: Open the vs.net command prompt line, enter the aspnet_regiis-ir-enable Method 2: Enter "cmd" to enter the DOS prompt command window, such as "C: \ WINDOWS \ Microsoft. NET \ Framework \ v2.0.50727 directory. After running the aspnet_regiis.exe/I command, the system will prompt that asp.net is being installed. After the installation is complete, the system will be able to operate normally. In addition, check whether the ASP.net version in the default website attribute is 2.0.50.

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.