我使用visual studio 2008 fo rasp .net 3.5 web开发。我发布了网站,并在windows xp中建立的IIS 5.1中添加了虚拟目录。如何在IIS 5.1上发布ASP.NET 3.5?
当我运行该页面时,显示以下错误。
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版本。 (没有选项,如3.5 IIS 5.1)
再次,现在跑了得到这个错误(我应该安装一个更高版本): 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.
Exception Details: System.Web.Hosting.HostingEnvironmentException: Failed to access IIS metabase.
编辑: 确定。我发现了错误。
在http://csharpdotnetfreak.blogspot.com/2009/02/failed-to-access-iis-metabase.html
大通过重新安装ASP解决它!
为什么IIS 5.1?你为什么不使用7+? – Shoban 2011-05-20 11:00:08
因为它是预先安装在Windows XP中 – Ranjanmano 2011-05-20 11:16:48