请选择 进入手机版 | 继续访问电脑版
 找回密码
 立即注册

QQ登录

只需一步,快速开始

wengMQ 悬赏达人认证
银牌会员   /  发表于:2019-11-5 16:07  /   查看:2502  /  回复:1
本帖最后由 wengMQ 于 2019-11-5 20:13 编辑

错误显示。

webconfig修改方法:
<?xml version="1.0"?>
<!--
  For more information on how to configure your ASP.NET application, please visit
  http://go.microsoft.com/fwlink/?LinkId=301880
  -->
<configuration>
  <appSettings>
    <add key="webpages:Version" value="3.0.0.0"/>
    <add key="webpages:Enabled" value="false"/>
    <add key="ClientValidationEnabled" value="true"/>
    <add key="UnobtrusiveJavaScriptEnabled" value="true"/>
  </appSettings>
  <!--
    有关 web.config 更改的说明,请参见 http://go.microsoft.com/fwlink/?LinkId=235367

    可在 <httpRuntime> 标记上设置以下特性。
      <system.Web>
        <httpRuntime targetFramework="4.7.2" />
      </system.Web>
  -->
  <system.web>
    <compilation debug="true" targetFramework="4.6.2"/>
    <httpRuntime targetFramework="4.6.2" requestPathInvalidCharacters=""/>
  </system.web>
  <system.webServer>
   
    <!--IIS7/7.5上必须加这个配置,否则访问报错    <modules runAllManagedModulesForAllRequests="true"/>-->
    <modules>
      <remove name="UrlRoutingModule-4.0" />
      <add name="UrlRoutingModule-4.0" type="System.Web.Routing.UrlRoutingModule" preCondition="" />
    </modules>
    <security>
      <requestFiltering allowDoubleEscaping="true"/>
    </security>
  </system.webServer>
  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="GrapeCity.ActiveReports.Export.Excel" publicKeyToken="CC4967777C49A3FF" culture="neutral"/>
        <bindingRedirect oldVersion="13.0.0.0-13.2.18293.2" newVersion="13.2.18293.2"/>
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="GrapeCity.ActiveReports.Document" publicKeyToken="CC4967777C49A3FF" culture="neutral"/>
        <bindingRedirect oldVersion="13.0.0.0-13.2.18293.2" newVersion="13.2.18293.2"/>
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="GrapeCity.ActiveReports.Export.Image" publicKeyToken="CC4967777C49A3FF" culture="neutral"/>
        <bindingRedirect oldVersion="13.0.0.0-13.2.18293.2" newVersion="13.2.18293.2"/>
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="GrapeCity.ActiveReports.Export.Html" publicKeyToken="CC4967777C49A3FF" culture="neutral"/>
        <bindingRedirect oldVersion="13.0.0.0-13.2.18293.2" newVersion="13.2.18293.2"/>
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="GrapeCity.ActiveReports.Export.Svg" publicKeyToken="CC4967777C49A3FF" culture="neutral"/>
        <bindingRedirect oldVersion="13.0.0.0-13.2.18293.2" newVersion="13.2.18293.2"/>
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="GrapeCity.ActiveReports.Export.Pdf" publicKeyToken="CC4967777C49A3FF" culture="neutral"/>
        <bindingRedirect oldVersion="13.0.0.0-13.2.18293.2" newVersion="13.2.18293.2"/>
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="GrapeCity.ActiveReports.Export.Word" publicKeyToken="CC4967777C49A3FF" culture="neutral"/>
        <bindingRedirect oldVersion="13.0.0.0-13.2.18293.2" newVersion="13.2.18293.2"/>
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="GrapeCity.ActiveReports.Export.Xml" publicKeyToken="CC4967777C49A3FF" culture="neutral"/>
        <bindingRedirect oldVersion="13.0.0.0-13.2.18293.2" newVersion="13.2.18293.2"/>
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="GrapeCity.ActiveReports" publicKeyToken="CC4967777C49A3FF" culture="neutral"/>
        <bindingRedirect oldVersion="13.0.0.0-13.2.18293.2" newVersion="13.2.18293.2"/>
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="GrapeCity.ActiveReports.Core.Diagnostics" publicKeyToken="CC4967777C49A3FF" culture="neutral"/>
        <bindingRedirect oldVersion="1.0.0.0-1.3.2450.0" newVersion="1.3.2450.0"/>
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="GrapeCity.ActiveReports.Core.Export.Word.Page" publicKeyToken="CC4967777C49A3FF" culture="neutral"/>
        <bindingRedirect oldVersion="1.0.0.0-1.3.2450.0" newVersion="1.3.2450.0"/>
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="GrapeCity.ActiveReports.Core.Rdl" publicKeyToken="CC4967777C49A3FF" culture="neutral"/>
        <bindingRedirect oldVersion="1.0.0.0-1.3.2450.0" newVersion="1.3.2450.0"/>
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="GrapeCity.ActiveReports.Core.Export.Excel.Page" publicKeyToken="CC4967777C49A3FF" culture="neutral"/>
        <bindingRedirect oldVersion="1.0.0.0-1.3.2450.0" newVersion="1.3.2450.0"/>
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="GrapeCity.ActiveReports.Core.Export.Html.Page" publicKeyToken="CC4967777C49A3FF" culture="neutral"/>
        <bindingRedirect oldVersion="1.0.0.0-1.3.2450.0" newVersion="1.3.2450.0"/>
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="GrapeCity.ActiveReports.Core.Rendering" publicKeyToken="CC4967777C49A3FF" culture="neutral"/>
        <bindingRedirect oldVersion="1.0.0.0-1.3.2450.0" newVersion="1.3.2450.0"/>
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="GrapeCity.ActiveReports.Core.Drawing.Gdi" publicKeyToken="CC4967777C49A3FF" culture="neutral"/>
        <bindingRedirect oldVersion="1.0.0.0-1.3.2450.0" newVersion="1.3.2450.0"/>
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="GrapeCity.ActiveReports.Core.DataProviders" publicKeyToken="CC4967777C49A3FF" culture="neutral"/>
        <bindingRedirect oldVersion="1.0.0.0-1.3.2450.0" newVersion="1.3.2450.0"/>
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="GrapeCity.ActiveReports.Core.Export.Text.Page" publicKeyToken="CC4967777C49A3FF" culture="neutral"/>
        <bindingRedirect oldVersion="1.0.0.0-1.3.2450.0" newVersion="1.3.2450.0"/>
      </dependentAssembly>
    </assemblyBinding>
  </runtime>
</configuration>
修改配置后



本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x

评分

参与人数 1金币 +2000 收起 理由
KearneyKang + 2000 赞一个!

查看全部评分

1 个回复

倒序浏览
KearneyKang讲师达人认证 悬赏达人认证
超级版主   /  发表于:2019-11-5 17:42:24
沙发
非常棒,赞一个
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部