  

|
[软件故障] 名称以无效字符开头。处理资源 'http://localhost/' 时出错。第 1 行,位置: 2
现象:访问本机ASP.NET网页时出现如下错误提示:
名称以无效字符开头。处理资源 'http://localhost/' 时出错。第 1 行,位置: 2
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default...
原因:先安装VS2005又安装的IIS,或ASP.NET组件损坏。
解决:在IIS上注册ASP.NET即可,具体步骤如下:
运行-->cmd
cd C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
aspnet_regiis.exe -i
或
开始->程序->Microsoft Visual Studio 2005->Visual Studio Tools中打开Visual Studio 2005命令提示,输入命令:aspnet_regiis -i,这样就重新注册了.NET。 |
|