簡體   English   中英

如何在IIS 5.1上發布ASP.NET 3.5?

[英]How to publish ASP.NET 3.5 on IIS 5.1?

我正在使用Visual Studio 2008 fo .sp.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. 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來解決此問題

大!

由於某些原因,aspx文件無法正確呈現。 請嘗試再次使用ASP.NET IIS注冊工具(Aspnet_regiis.exe u-卸載,i-install)注冊asp.net。 還要在IIS中檢查asp.net的版本。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM