asp.net – HTTP错误500.23之后添加到我的本地网站dotless
发布时间:2020-12-15 18:46:14 所属栏目:asp.Net 来源:网络整理
导读:嗨,我试图在本地的.net4网站上运行 dotless 我的网络配置如下所示: ?xml version="1.0" encoding="utf-8"?configuration configSections section name="dotless" type="dotless.Core.configuration.DotlessConfigurationSectionHandler,dotless.Core" / /c
嗨,我试图在本地的.net4网站上运行
dotless
我的网络配置如下所示: <?xml version="1.0" encoding="utf-8"?> <configuration> <configSections> <section name="dotless" type="dotless.Core.configuration.DotlessConfigurationSectionHandler,dotless.Core" /> </configSections> <system.web> <compilation debug="true" targetFramework="4.0" /> <httpHandlers><add path="*.less" verb="GET" type="dotless.Core.LessCssHttpHandler,dotless.Core" /></httpHandlers></system.web> <dotless minifyCss="false" cache="true" web="false" /> <system.webServer> <handlers> <add name="dotless" path="*.less" verb="GET" type="dotless.Core.LessCssHttpHandler,dotless.Core" resourceType="File" preCondition="" /> </handlers> </system.webServer> </configuration> 这是我得到的错误 HTTP Error 500.23 - Internal Server Error An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode. Most likely causes: This application defines configuration in the system.web/httpHandlers section. 你能帮忙吗? 解决方法
添加< validation validateIntegratedModeConfiguration =“false”/>工作
<?xml version="1.0" encoding="utf-8"?> <configuration> <configSections> <section name="dotless" type="dotless.Core.configuration.DotlessConfigurationSectionHandler,dotless.Core" /> </configSections> <system.web> <compilation debug="true" targetFramework="4.0" /> <httpHandlers> <add path="*.less" verb="GET" type="dotless.Core.LessCssHttpHandler,dotless.Core" /> </httpHandlers> </system.web> <dotless minifyCss="false" cache="true" web="false" /> <system.webServer> <validation validateIntegratedModeConfiguration="false"/> <handlers> <add name="dotless" path="*.less" verb="GET" type="dotless.Core.LessCssHttpHandler,dotless.Core" resourceType="File" preCondition="" /> </handlers> </system.webServer> </configuration> (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- 客户端认证通过X509证书在asp.net
- asp.net-mvc – 自定义模型绑定,模型状态和数据注释
- asp-classic – 将断开连接的记录集插入字典对象?
- model-view-controller – 将模型转换为viewmodel
- asp.net-mvc – Asp.net MVC控制器Action字符串参数未通过
- asp.net-mvc-3 – MVC 3:AutoMapper和项目/解决方案结构
- 详解ASP.NET Core 中的框架级依赖注入
- ASP.NET MVC3中具有多个类的ActionLink
- Safari和Asp.net中的cookie存在奇怪的问题
- asp.net-mvc – 某些Razor视图没有发布
推荐文章
站长推荐
热点阅读