2013-03-11 79 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); 
相关问题