【发布时间】:2011-05-20 19:41:46
【问题描述】:
我正在使用 Visual Studio 2008 进行 rasp .net 3.5 Web 开发。我发布了网站并在 windows xp 内置的 IIS 5.1 中添加了虚拟目录。
当我运行页面时,显示以下错误。
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
A name was started with an invalid character. Error processing resource 'http://localhost/cdt/Dashboard.aspx'. Line 1, Pos...
<%@ page language="C#" MasterPageFile="~/MasterPage.master" autoeventwireup="true" inherits="_Default, App_Web_zy4yhpyn" ...
我还需要安装其他东西吗?
为什么会这样?
解决办法是什么?
更新:选择 .net 2.0 版本。 (IIS 5.1中没有3.5等选项)(我应该安装更高版本吗?)
再次运行它,现在得到这个错误:
Failed to access IIS metabase.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
异常详细信息:System.Web.Hosting.HostingEnvironmentException:无法访问 IIS 元数据库。
编辑: 好的。我发现了错误。
通过在 http://csharpdotnetfreak.blogspot.com/2009/02/failed-to-access-iis-metabase.html 重新安装 ASP 解决了这个问题
太棒了!
【问题讨论】:
-
为什么选择 IIS 5.1?为什么不使用 7+?
-
因为它是预装在windows xp中的
标签: .net asp.net asp.net-3.5 publishing iis-5