问题描述
问题:当删掉<rewrite>节点之间的内容时可以查看启用目录浏览等操作如果不删直接打不开并且浏览器上查看报HTTP错误500.19-InternalServerError无法访问请求的页面,因为该页的相关配置数据无效错误代码:0x8007000d网上搜了很多500.19的都没解决还请大神帮忙看一下此问题我的是iis7.564位win7系统webconfig配置如下:<?xmlversion="1.0"encoding="utf-8"?><!--FormoreinformationonhowtoconfigureyourASP.NETapplication,pleasevisithttp://go.microsoft.com/fwlink/?LinkId=301879--><configuration><appSettings/><connectionStrings><addname="ReportDB"connectionString="server=.;uid=sa;pwd=123;database=NEMS;"/></connectionStrings><system.web><compilationdebug="true"targetFramework="4.5"/><httpRuntimetargetFramework="4.5.2"/></system.web><system.webServer><httpProtocol><customHeaders></customHeaders></httpProtocol><handlers><removename="ExtensionlessUrlHandler-Integrated-4.0"/><removename="OPTIONSVerbHandler"/><removename="TRACEVerbHandler"/><addname="ExtensionlessUrlHandler-Integrated-4.0"path="*."verb="*"type="System.Web.Handlers.TransferRequestHandler"preCondition="integratedMode,runtimeVersionv4.0"/></handlers><rewrite><rules><rulename="AngularJS"stopProcessing="true"><matchurl=".*"/><conditionslogicalGrouping="MatchAll"><addinput="{REQUEST_FILENAME}"matchType="IsFile"negate="true"/><addinput="{REQUEST_FILENAME}"matchType="IsDirectory"negate="true"/><addinput="{REQUEST_URI}"pattern="^/(api)"negate="true"/></conditions><actiontype="Rewrite"url="/"/></rule></rules></rewrite></system.webServer><runtime><assemblyBindingxmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentityname="System.Web.Http"publicKeyToken="31bf3856ad364e35"culture="neutral"/><bindingRedirectoldVersion="0.0.0.0-5.2.2.0"newVersion="5.2.2.0"/></dependentAssembly><dependentAssembly><assemblyIdentityname="System.Net.Http.Formatting"publicKeyToken="31bf3856ad364e35"culture="neutral"/><bindingRedirectoldVersion="0.0.0.0-5.2.2.0"newVersion="5.2.2.0"/></dependentAssembly><dependentAssembly><assemblyIdentityname="Newtonsoft.Json"publicKeyToken="30ad4fe6b2a6aeed"culture="neutral"/><bindingRedirectoldVersion="0.0.0.0-6.0.0.0"newVersion="6.0.0.0"/></dependentAssembly><dependentAssembly><assemblyIdentityname="Microsoft.Owin"publicKeyToken="31bf3856ad364e35"culture="neutral"/><bindingRedirectoldVersion="0.0.0.0-3.0.0.0"newVersion="3.0.0.0"/></dependentAssembly><dependentAssembly><assemblyIdentityname="Microsoft.Owin.Security"publicKeyToken="31bf3856ad364e35"culture="neutral"/><bindingRedirectoldVersion="0.0.0.0-3.0.0.0"newVersion="3.0.0.0"/></dependentAssembly><dependentAssembly><assemblyIdentityname="Microsoft.Owin.Security.Cookies"publicKeyToken="31bf3856ad364e35"culture="neutral"/><bindingRedirectoldVersion="0.0.0.0-3.0.0.0"newVersion="3.0.0.0"/></dependentAssembly></assemblyBinding></runtime></configuration>
解决方案
本帖最后由 u012722908 于 2014-12-05 16:45:47 编辑
解决方案二:
解决方案三:
请问你这个问题解决了吗?我也碰到了,如何解决的?
解决方案四:
我的系统环境如下:Windows8.1X64;IIS8.5。我这边问题解决,解决方案如下:(1)webconfig文件system.webServer节点下配置rewrite报错是因为需要安装URL重写,微软下载链接:http://www.microsoft.com/zh-cn/download/details.aspx?id=7435(2)注意在应用程序池中选择正确的托管管道模式。
解决方案五:
3#正解,下个ISAPI不顶用。