简体   繁体   English

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

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

I am using visual studio 2008 fo rasp .net 3.5 web development. 我正在使用Visual Studio 2008 fo .sp.net 3.5 Web开发。 I published the website and added virtual directory in IIS 5.1 built in windows xp. 我发布了网站,并在Windows XP中内置的IIS 5.1中添加了虚拟目录。

When i run the page, the following error is displayed. 当我运行页面时,显示以下错误。

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" ...

Do i have to install anything else? 我还需要安装其他东西吗?

why is this happening? 为什么会这样呢?

What is the solution? 解决办法是什么?

UPDATE: Chose .net 2.0 version. 更新:选择.net 2.0版本。 (there is no option such as 3.5 in IIS 5.1)(Should i install a higher version?) (在IIS 5.1中没有3.5之类的选项)(我应该安装更高的版本吗?)

Ran it again and now get this error: 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. 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.

EDIT: ok. 编辑:好的。 I found the error. 我发现了错误。

Solved it by reinstalling ASP at http://csharpdotnetfreak.blogspot.com/2009/02/failed-to-access-iis-metabase.html 通过在http://csharpdotnetfreak.blogspot.com/2009/02/failed-to-access-iis-metabase.html上重新安装ASP来解决此问题

great! 大!

for some reason the aspx files are not rendered properly. 由于某些原因,aspx文件无法正确呈现。 try registering asp.net using ASP.NET IIS Registration Tool (Aspnet_regiis.exe u- uninstall, i-install) once again. 请尝试再次使用ASP.NET IIS注册工具(Aspnet_regiis.exe u-卸载,i-install)注册asp.net。 Also check the version of asp.net in the IIS. 还要在IIS中检查asp.net的版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM