An XML page is not displayed when IIS browses the Web page

Source: Internet
Author: User
Tags knowledge base metabase microsoft download center

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, Location: 2
<%@ page language= "C #" codefile= "Main.aspx.cs" inherits= "_default"%>
-^

Converting XML to HTML requires XSLT, not CSS. Typically, when you install VS 2005, Setup automatically configures the local IIS service to use ASP. NET 2.0. We can write or debug the Web application directly under VS2005. However, if we install VS2005 First, then IIS is installed. At this point, IIS is set to use asp.net1.0. The following hint appears when we set up the Web program in VS2005: The site ' http://localhost/xxxxxx ' has not been configured for use with ASP. Microsoft VisualStudio have been designed for use with ASP. 2.0; If notconfigured some features may do incorrect assumptions, and pagesdesigned with the tool could not render correctly. and Cannot be automatically configured successfully. At this point, you only need to execute the following command in Visual Studio 2005 command prompt.
Workaround:Run the vs2005 command line (start, All Programs, VS2005, Visual StudioTools, write inaccurate), run "aspnet_regiis.exe/i", OK. That is, you can install ASP. NET 2.0 in IIS.
Note: If you use ASP. NET 2.0 and must grant metabase permissions to Windows user accounts, do not use the MetaAcl tool. Instead, run the ASP. IIS Registration Tool command along with the-ga option. For example, the following command is granted to Windows users: Iismetabase account permissions
Aspnet_regiis-ga
Warning if correct, editing the metabase may cause serious problems that may require you to reinstall any products that use the metabase. Microsoft cannot guarantee that the issue can be resolved if the metabase is edited incorrectly. Editing the metabase requires you to be at your own risk.
http://support.microsoft.com/?kbid=267904
You can use the Metaacl.vbs tool to modify a default permission setting on an Internet information Services (IIS) metabase.
You may have been directed to this Microsoft Knowledge Base article since the following IIS error message is heavy:
System.Web.Hosting.HostingEnvironmentException: Failed to access IIS metabase. The account used to run the ASP must have read permissions to the IIS metabase (///servername/svc such as IIS):. For information on modifying metabase permissions, seehttp://support.microsoft.com/?kbid=267904。
This error message is received because the permissions on the metabase are insufficient or the permissions are set correctly.
Helps resolve this error by using the MetaAcl tool to modify metabase permissions. For more information about the MetaAcl tool and how to access the control List (ACL), click the following article number to view the Microsoft Knowledge Base:
326902 (http://support.microsoft.com/kb/326902/) use MetaAcl ACLS and permission changes against the metabase ACL
Back to the top
More information
can be used to download the following files from the Microsoft Download Center:
Download the Metaacl.exe package now. (Http://download.microsoft.com/download/5/7/3/57316f36-ded6-41f0-b694-8b0102ade818/metaacl.exe)
July 16 Release Date: 2003,
For information about how to download Microsoft Support files, click the following article number to view the Microsoft Knowledge Base:
119591 (http://support.microsoft.com/kb/119591/How to obtain Microsoft support files from an online service
This file is scanned for viruses by Microsoft. Microsoft uses the latest virus detection software to post files available on the date. Files stored on security-enhanced servers help prevent unauthorized changes to the file.
The Metaacl.exe file contains the following files:
File name Size
Metaacl.vbs 7,380 bytes
EULA.txt 1,652 bytes
For a complete discussion on how to use the Metaacl.vbs tool, click the following Microsoft Knowledge Base article:
326902 (http://support.microsoft.com/kb/326902/) use MetaAcl ACLS and permission changes against the metabase ACL
===========
Start installation of ASP. NET (2.0.50727).
..............
ASP. NET (2.0.50727) installation is complete.

An XML page is not displayed when IIS browses the Web page

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.