使用 XSL 样式表无法查看 XML 输入。请更正错误然后单击 刷新按钮,或以后重试。
名称以无效字符开头。处理资源 'http://localhost//Default.aspx' 时出错。第 1 行,位置: 2
这个问题可能是因为没有安装好asp.net framework 或者没有注册到iis web server上;对于后者,解决方法是运行
aspnet_regiis.exe -i
具体在命令行中执行时,遇到了新的问题:
当运行C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i时,控制台输出错误信息如下:
Start installing ASP.NET (2.0.50727).
.......................The error indicates that IIS is in 64 bit mode, while this application is a 32 bit application and thus not compatible.
Finished installing ASP.NET (2.0.50727).
检查C:\WINDOWS\Microsoft.NET\路径,发现有一个64位的framework64,于是
cd C:\WINDOWS\microsoft.net\Framework64\v2.0.50727
C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727>aspnet_regiis.exe -i
Start installing ASP.NET (2.0.50727).
.......................
Finished installing ASP.NET (2.0.50727).
Setup has detected some errors during the operation. For details, please read the setup log file C:\DOCUME~1\v-zhdu\LOCALS~1\Temp\3\ASPNETSetup_00000.log
访问页面 正常。
参考: http://www.cnblogs.com/limei/archive/2010/06/22/1762812.html