开发者

Server error in '/' Application in Mvc Music Store ASP.Net MVC Sample Ported to Mono

开发者 https://www.devze.com 2023-01-16 23:41 出处:网络
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

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 (tarba开发者_如何转开发ll 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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号