2012-09-11 55 views
1

我試圖在我的MVC 3應用程序中使用elfinder,並使用此連接器 :http://elfinderconnectornet.codeplex.com/的elfinder。此連接器可與WebConfig中配置的http處理程序配合使用。例如:elfinder與MVC 3和IIS 7

的網址,如: 192.168.0.17:9002/elfinder.connector?_=1347370006351 & CMD =開放&目標= &的init =真&樹= ......

我在web配置

<system.web> 
    <httpHandlers> 
    <add verb="*" path="elfinder.connector" type="ElFinder.Connector.Connector" /> 
    </httpHandlers> 
</system.web> 

和的global.asax.cs routes.IgnoreRoute("elfinder.connector");處理程序忽略的網址,「控制器/行動」路由。

當我在VisualStudio本地主機運行此代碼時,所有工作正常,但在IIS 7上我有一個404錯誤。

可能是IIS爲httphandlers定製配置?一些複選框需要檢查:) 任何想法?

+0

finded solution [here](http://stackoverflow.com/questions/1272971/custom-http-handlers-iis7-and-asp-net/1273021#1273021) – maxs87

回答

0

我收到相同的錯誤,因爲我沒有目錄的讀取權限。您必須至少提供閱讀權限才能查看文件夾和文件。

希望它有幫助。問候。