WebService error: Unable to view XML input using XSL style sheet

Source: Internet
Author: User
Tags xsl

Enter the URL in the browser: ' http://localhost/test.aspx ' The following error message appears:

The XML page could not be displayed.
XML input cannot be viewed using XSL style sheets. Please correct the error and click the Refresh button, or try again later.
--------------------------------------------------------------------------------

The name begins with an invalid character. An error occurred while processing the resource ' http://localhost/test.aspx '. Line 1th, Location: 2

<%@ page language= "C #" .... %>
-^

It's obvious that. NET doesn't work and looks for it on the Internet, the solution is as follows: (Gray for the command line input and output content)

1. Find the location of. NET mine is in C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 everyone with according to their position, the general difference is not small.

(Open cmd input cd C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 )

C:\CD C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727

2. Run aspnet_regiis.exe/i (just continue typing in cmd:aspnet_regiis.exe/i) and wait a moment.

c:\windows\microsoft.net\framework\v2.0.50727>aspnet_regiis.exe/i
Start installation of ASP. NET (2.0.50727).
........................
ASP. NET (2.0.50727) installation is complete.

3, this is OK. Enter the URL in the browser: ' Http://localhost/test.aspx ' on it.

WebService error: Unable to view XML input using XSL style sheet

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.