2013-03-11 76 views
0

該應用程序似乎運行良好?但我一直在我的日誌中看到這些例外:獲取mvc 3異常:路徑'/GMIS/ie-css3.htc'的控制器未找到或未實現IController?

2013-03-11 11:32:46,736 [30] DEBUG COPSGMIS.Logging.GMISLogging - Executing controller: Home, action: Index 
2013-03-11 11:32:48,934 [30] ERROR COPSGMIS.MvcApplication - GMIS Exception 
System.Web.HttpException (0x80004005): The controller for path '/GMIS/ie-css3.htc' was not found or does not implement IController. 
    at System.Web.Mvc.DefaultControllerFactory.GetControllerInstance(RequestContext requestContext, Type controllerType) 
    at System.Web.Mvc.DefaultControllerFactory.CreateController(RequestContext requestContext, String controllerName) 
    at System.Web.Mvc.MvcHandler.ProcessRequestInit(HttpContextBase httpContext, IController& controller, IControllerFactory& factory) 

回答

0

放置ie-css3.htc內容文件夾。

+0

當我把它放在內容的地理位置:http://www.example.com/GMIS/content/ie-css3.htc?它應該放在哪裏http://www.example.com/GMIS/ie-css3.htc – Chaka 2013-03-11 17:41:37

+0

爲什麼你不想把它放在內容文件夾中並從那裏引用它? – CoffeeCode 2013-03-12 22:05:24

0

試試這個。加入這一行

routes.IgnoreRoute("GMIS/ie-css3.htc"); 

您的通話以上,你圖路線

+0

添加在中的RegisterRoutes行(..)全球性的,仍然沒有壓制它。 – Chaka 2013-03-11 15:59:23

0

不知道爲什麼,我忽略了it..in我的樣式表,我有以下幾點:

behavior: url(ie-css3.htc); 

它需要的是:

behavior: url(../Content/ie-css3.htc); 
相關問題