Problems encountered when using iis

Question: The name starts with an invalid character. An error occurred while processing resource'file:///C:/Downloads/webhww/webhww/Default.aspx'. Line 1, position: 2  

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

answer:


Because the version of asp.net is incorrect, or vs.net is installed and configured before iis, various problems will occur. For example, the following error is an example: 

============== ========================The

XML page cannot be displayed. 

The XML input cannot be viewed using XSL style sheets. Please correct the error and click the refresh button, or try again later. 


-------------------------------------------------- ------------------------------ The


name starts with an invalid character. An error occurred while processing resource'http://localhost/'. Line 1, position: 2 

<%@ Page Language="C#" MasterPageFile="~/SiteBase.Master" AutoEventWireup="true" CodeBehind="default.aspx.cs" Inherits="E...

==== ================================================== =The

solution is also very simple, is to re-register iis: from Start->Programs->Microsoft Visual Studio 2005->Visual Studio Tools, open the Visual Studio 2005 Command Prompt, enter the command: aspnet_regiis -i, and then re-register.net , Finished in less than one minute:

Start installing ASP.NET (2.0.50727).

...........

Finished installing ASP.NET (2.0.50727).

In addition, you need to right-click on the virtual directory to open the properties dialog box, click on the ASP.NET property page and select the corresponding ASP.NET version (1.1 or 2.0) in the "ASP.NET version" item ).

After the above two steps, the problem can be basically solved.

As I said above, many problems are caused by this. Therefore, if your asp.net program has some version-related problems, it is recommended that you run the aspnet_regiis.exe program first, with'-i' as the parameter , Re-register, maybe the problem will be solved

Guess you like

Origin blog.csdn.net/jinzhengquanqq/article/details/5939885