如何在 IIS 5.1 上发布 ASP.NET 3.5?
我正在使用 Visual Studio 2008 进行 rasp .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之类的选项)(我应该安装更高版本吗?)
再次运行它,现在出现此错误: <代码> 无法访问 IIS 元数据库。 描述:执行当前 Web 请求期间发生未处理的异常。请查看堆栈跟踪以获取有关错误及其在代码中的来源的更多信息。异常
详细信息:System.Web.Hosting.HostingEnvironmentException:无法访问 IIS 元数据库。
<代码>
编辑: 好的。我发现了错误。
通过在 http://csharpdotnetfreak.blogspot.com/2009/02/failed-to-access-iis-metabase.html 重新安装 ASP 解决了这个问题,
太棒了!
I am using visual studio 2008 fo rasp .net 3.5 web development. I published the website and added virtual directory in IIS 5.1 built in windows xp.
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. (there is no option such as 3.5 in IIS 5.1)(Should i install a higher version?)
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.
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
great!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
由于某种原因,aspx 文件无法正确呈现。再次尝试使用 ASP.NET IIS 注册工具(Aspnet_regiis.exe u-卸载、i-安装)注册 asp.net。还要检查IIS中asp.net的版本。
for some reason the aspx files are not rendered properly. try registering asp.net using ASP.NET IIS Registration Tool (Aspnet_regiis.exe u- uninstall, i-install) once again. Also check the version of asp.net in the IIS.