尝试访问.less文件时,无法从程序集“ dotless.Core”加载类型'dotless.Core.LessCssHttpHandler'。

问题描述 投票:1回答:2
当我尝试访问.less文件时,我在IIS6-站点中收到以下错误:

Detailed error information (authorized by permissions to functions) Error occured 13.02.2013 10:30:19 User IP 93.89.112.52 User Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:18.0) Gecko/20100101 Firefox/18.0 Url http://www.oppdal.kommune.no/Templates/SSP.MasterPages/Static/css/style.less Referer (none) Exception details: ConfigurationErrorsException: Could not load type 'dotless.Core.LessCssHttpHandler ' from assembly 'dotless.Core'. (C:\prokom\Oppdal Kommune CMS6R2Newest2\web.config line 377) Stack trace: [ConfigurationErrorsException: Could not load type 'dotless.Core.LessCssHttpHandler ' from assembly 'dotless.Core'. (C:\prokom\Oppdal Kommune CMS6R2Newest2\web.config line 377)] at System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase) at System.Web.Configuration.HttpHandlerAction.Create() at System.Web.Configuration.HandlerFactoryCache..ctor(HttpHandlerAction mapping) at System.Web.HttpApplication.GetFactory(HttpHandlerAction mapping) at System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) at System.Web.HttpApplication.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) [Inner exception TypeLoadException: Could not load type 'dotless.Core.LessCssHttpHandler ' from assembly 'dotless.Core'.] at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, Boolean loadTypeFromPartialName, ObjectHandleOnStack type) at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, Boolean loadTypeFromPartialName) at System.RuntimeType.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) at System.Type.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) at System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) at System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase)

httpHandlers-section中的Web.config:

<add type=" dotless.Core.LessCssHttpHandler ,dotless.Core" validate="false" path="*.LESS" verb="*" />

dotless.Core 1.3.1.0版本位于bin文件夹中。

这是什么原因,如何解决?

当我尝试访问.less文件时,在IIS6-站点中收到以下错误:详细的错误信息(由功能许可授权)发生错误13.02.2013 10:30:19用户IP 93.89.112.。 ..

asp.net iis iis-6 dotless
2个回答
0
投票
我将我放在错误的httpHandlers部分中。它位于system.web部分,而不是system.webServer。

0
投票
上一个版本是不同的:
© www.soinside.com 2019 - 2024. All rights reserved.