Как опубликовать ASP.NET 3.5 на IIS 5.1? - PullRequest
0 голосов
/ 20 мая 2011

Я использую Visual Studio 2008 для веб-разработки rasp .net 3.5.Я опубликовал веб-сайт и добавил виртуальный каталог в IIS 5.1, встроенный в Windows XP.

Когда я запускаю страницу, отображается следующая ошибка:

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. </p> <p>Exception Details: System.Web.Hosting.HostingEnvironmentException: Failed to access IIS metabase. </p> <p>

РЕДАКТИРОВАТЬ: ок.Я нашел ошибку.

Решил ее, переустановив ASP на http://csharpdotnetfreak.blogspot.com/2009/02/failed-to-access-iis-metabase.html

отлично!

1 Ответ

1 голос
/ 20 мая 2011

по некоторым причинам aspx файлы не отображаются должным образом. попробуйте зарегистрировать asp.net с помощью средства регистрации ASP.NET IIS (Aspnet_regiis.exe u- удалить, i-установить) еще раз. Также проверьте версию asp.net в IIS.

...