'/' 中的服务器错误Mvc Music Store 中的应用 ASP.Net MVC 示例移植到 Mono
我目前正在将 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不熟悉这方面的细节,但我建议您尝试使用 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.