2010-09-20 28 views
0

我目前正在將單聲道的Mvc Music Store example移植到單聲道,並且它運行良好,但我遇到了一個尾隨斜線在其中一條路線上。在母版頁下面的鏈接服務器錯誤'/'Mvc音樂商店中的應用程序ASP.Net MVC示例移植到單聲道

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

當我運行應用程序,並導航到/存儲/我收到以下錯誤

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虛擬目錄的問題,但我不確定在使用openSUSE 11.3與Mono 2.6.7和MonoDevelop 2.4的Linux上,問題是什麼。

+0

什麼是您的服務器配置? XSP,FastCGI,mod_mono?如果你使用的是FastCGI或mod_mono,你可以使用一個重寫模塊來處理尾部的斜線...... – Tracker1 2010-09-26 21:44:29

+0

對不起,忘記提及了。我正在運行MonoDevelop,所以這是在XSP下。 – pnewhook 2010-09-27 13:23:54

+0

我有類似的問題,但它是爲根域。即http://domain.com不起作用,但http://domain.com/home確實有效 – Alex 2010-10-08 15:28:01

回答

0

我對這個細節並不熟悉,但我建議你在Mono 2.8預覽版中試用它,如果它仍然失敗,請提交一個bug。

相關問題