在 Windows XP IIS 上使用 ASP.NET 动态数据站点?

发布于 2024-07-06 16:56:03 字数 738 浏览 9 评论 0原文

我有一个使用 .NET 3.5 SP1 在 Visual Studio 2008 中构建的动态数据网站。 该网站在我的 Vista 计算机上运行正常,但在 Windows XP 计算机上运行时出现以下错误:

“/FlixManagerWeb”中的服务器错误 应用。 -------------------------------------------------- - - - - - - - - - - - - - - - 无法找到该资源。 描述:HTTP 404。资源 您正在寻找(或其之一 依赖项)可能已被删除, 已更名,或者是 暂时不可用。 请 检查以下 URL 并确保 它拼写正确。

请求的 URL:/FlixManagerWeb -------------------------------------------------- ------------------------------ 版本信息:Microsoft .NET 框架版本:2.0.50727.3053; ASP.NET版本:2.0.50727.3053

我添加了 .* -> 站点配置中的 aspnet_isapi.dll 映射,确保它是一个“应用程序”,但这没有帮助。 有人能在 Windows XP 上运行动态数据网站吗? 让它工作需要什么(如果有的话)特别的?

I have a Dynamic Data website built in Visual Studio 2008 using .NET 3.5 SP1. The site works OK on my Vista machine, but I get the following error when running it on a Windows XP machine:

Server Error in '/FlixManagerWeb'
Application.
-------------------------------------------------------------------------------- The resource cannot be found.
Description: HTTP 404. The resource
you are looking for (or one of its
dependencies) could have been removed,
had its name changed, or is
temporarily unavailable. Please
review the following URL and make sure
that it is spelled correctly.

Requested URL: /FlixManagerWeb
-------------------------------------------------------------------------------- Version Information: Microsoft .NET
Framework Version:2.0.50727.3053;
ASP.NET Version:2.0.50727.3053

I have added the .* -> aspnet_isapi.dll mapping in the site config, made sure that it is an "application," but that did not help. Anyone have any luck running a Dynamic Data website on Windows XP? What (if anything) special is required to get it to work?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

烟火散人牵绊 2024-07-13 16:56:03

我一直在 Windows XP 上运行动态数据网站,没有任何问题。 不需要任何特殊的东西就可以让它工作。

抱歉,我无法提供更多帮助!

I've been running a Dynamic Data website on Windows XP, without any problems. Nothing special was required to get it to work.

Sorry I can't be more helpful!

依 靠 2024-07-13 16:56:03

IIS 7 处理请求的方式与 IIS 5/6 不同,并且经典模式下的 MVC 不处理“默认”路由。 虽然 IIS 5/6 在您指定特定页面时可以工作,但对于典型的 MVC URL (http://somesite/controller/action/parm)。 如果 a) 您在每个请求中包含扩展名(.aspx 或 .mvc),或在 IIS 中实现通配符映射以通过 . NET 处理器。 史蒂夫·桑德森有一个很好的写下可用的选项。
仅供参考,我们选择了通配符选项

IIS 7 handles requests differently than IIS 5/6, and "default" routes are not handled by MVC in the classic mode. While IIS 5/6 will work if you specify a specific page, it will not work out-of-the-box for typical MVC URLs (http://somesite/controller/action/parm). It will only work if a) you include an extension in every request (.aspx or .mvc), or implement a wildcard mapping in IIS to pass EVERY request through the .NET processor. Steve Sanderson has a good writeup on the options available.
FYI, we chose the wildcard option

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文