'/' 中的服务器错误Mvc Music Store 中的应用 ASP.Net MVC 示例移植到 Mono

发布于 2024-09-24 10:16:11 字数 873 浏览 6 评论 0原文

我目前正在将 Mvc Music Store 示例 移植到 Mono,并且进展顺利,但我已经在其中一条路线上遇到带有斜线的障碍。主页上有以下链接

<a href="/Store/">Store</a>

当我运行应用程序并导航到 /Store/ 时,出现以下错误

Server Error in '/' 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: /Store/

Version information: Mono Runtime Version: 2.6.7 (tarball Wed Jul 14 17:55:26 UTC 2010); ASP.NET Version: 2.0.50727.1433

但是,当我去掉尾部斜杠时,它工作正常。我看过其他帖子和问题,表明这是部署到 IIS 时 Windows 虚拟目录的问题,但我不确定使用带有 Mono 2.6.7 和 MonoDevelop 2.4 的 openSUSE 11.3 的 Linux 上的问题是什么。

I'm currently porting the Mvc Music Store example to Mono, and it going very well, but I've run into a snag with a trailing slash on one of the routes. On the master page is the following link

<a href="/Store/">Store</a>

When I run the application and navigate to /Store/ I get the following error

Server Error in '/' 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: /Store/

Version information: Mono Runtime Version: 2.6.7 (tarball Wed Jul 14 17:55:26 UTC 2010); ASP.NET Version: 2.0.50727.1433

However when I take away the trailing slash it works fine. I've seen other posts and questions that would indicate this is a problem with Windows virtual directories when deployed to IIS, but I'm not sure what the problem is on linux using openSUSE 11.3 with Mono 2.6.7 and MonoDevelop 2.4.

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

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

发布评论

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

评论(1

隱形的亼 2024-10-01 10:16:11

我不熟悉这方面的细节,但我建议您尝试使用 Mono 2.8 预览版,如果仍然失败,请提交错误。

I'm not familiar with the details of this but I suggest you try it with the Mono 2.8 previews, and if it still fails, file a bug.

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