2011-05-20 84 views
0

我使用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解决它!

+0

为什么IIS 5.1?你为什么不使用7+? – Shoban 2011-05-20 11:00:08

+0

因为它是预先安装在Windows XP中 – Ranjanmano 2011-05-20 11:16:48

回答

1

由于某些原因aspx文件无法正确呈现。尝试使用ASP.NET IIS注册工具(Aspnet_regiis.exe u-卸载,i-install)再次注册asp.net。还要检查IIS中的asp.net版本。

+0

我应该执行ID DOS?它不能在DOS – Ranjanmano 2011-05-20 11:12:09

+0

中识别,因此必须在Visual Studio命令提示符下运行.http://msdn.microsoft.com/en-us/library/k6h9cz8h(v = VS.90).aspx – Aravind 2011-05-20 11:17:39

+0

对不起。这是在命令窗口中执行的吗? – Ranjanmano 2011-05-20 11:25:47