wengMQ 发表于 2019-3-7 12:13:42

WebDesigner_MVC IIS发布配置修改参考

<?xml version="1.0" encoding="utf-8"?>
<!--
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>
<system.web>
    <compilation debug="true" targetFramework="4.6.2" />
    <httpRuntime targetFramework="4.6.2" />
</system.web>
<system.webServer>
                <!--以下配置为了让IIS7+支持Put/Delete方法-->
                <httpProtocol>
                        <customHeaders>
                                <add name="Access-Control-Allow-Origin" value="*" />
                                <add name="Access-Control-Allow-Methods" value="GET,PUT,POST,DELETE,OPTIONS" />
                                <add name="Access-Control-Allow-Headers" value="Content-Type" />
                        </customHeaders>
                </httpProtocol>
                <!--IIS7/7.5上必须加这个配置,否则访问报错-->
                <modules runAllManagedModulesForAllRequests="true">
                        <remove name="WebDAVModule" />
                </modules>
                <validation validateIntegratedModeConfiguration="false" />
                <handlers>
                        <remove name="WebDAV" />
                        <remove name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" />
                        <remove name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" />
                        <remove name="ExtensionlessUrlHandler-Integrated-4.0" />
                        <add name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" resourceType="Unspecified" requireAccess="Script" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness32" responseBufferLimit="0" />
                        <add name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" resourceType="Unspecified" requireAccess="Script" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness64" responseBufferLimit="0" />
                        <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" resourceType="Unspecified" requireAccess="Script" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
                </handlers>

                <!--提高GET URL长度限制上限-->
                <security>
                        <requestFiltering>
                                <requestLimits maxUrl="409600" maxQueryString="204800" />
                        </requestFiltering>
                </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.0.15823.2" newVersion="13.0.15823.2" />
      </dependentAssembly>
      <dependentAssembly>
      <assemblyIdentity name="GrapeCity.ActiveReports.Document" publicKeyToken="CC4967777C49A3FF" culture="neutral" />
      <bindingRedirect oldVersion="13.0.0.0-13.0.15823.2" newVersion="13.0.15823.2" />
      </dependentAssembly>
      <dependentAssembly>
      <assemblyIdentity name="GrapeCity.ActiveReports.Export.Image" publicKeyToken="CC4967777C49A3FF" culture="neutral" />
      <bindingRedirect oldVersion="13.0.0.0-13.0.15823.2" newVersion="13.0.15823.2" />
      </dependentAssembly>
      <dependentAssembly>
      <assemblyIdentity name="GrapeCity.ActiveReports.Export.Html" publicKeyToken="CC4967777C49A3FF" culture="neutral" />
      <bindingRedirect oldVersion="13.0.0.0-13.0.15823.2" newVersion="13.0.15823.2" />
      </dependentAssembly>
      <dependentAssembly>
      <assemblyIdentity name="GrapeCity.ActiveReports.Export.Svg" publicKeyToken="CC4967777C49A3FF" culture="neutral" />
      <bindingRedirect oldVersion="13.0.0.0-13.0.15823.2" newVersion="13.0.15823.2" />
      </dependentAssembly>
      <dependentAssembly>
      <assemblyIdentity name="GrapeCity.ActiveReports.Export.Pdf" publicKeyToken="CC4967777C49A3FF" culture="neutral" />
      <bindingRedirect oldVersion="13.0.0.0-13.0.15823.2" newVersion="13.0.15823.2" />
      </dependentAssembly>
      <dependentAssembly>
      <assemblyIdentity name="GrapeCity.ActiveReports.Export.Word" publicKeyToken="CC4967777C49A3FF" culture="neutral" />
      <bindingRedirect oldVersion="13.0.0.0-13.0.15823.2" newVersion="13.0.15823.2" />
      </dependentAssembly>
      <dependentAssembly>
      <assemblyIdentity name="GrapeCity.ActiveReports.Export.Xml" publicKeyToken="CC4967777C49A3FF" culture="neutral" />
      <bindingRedirect oldVersion="13.0.0.0-13.0.15823.2" newVersion="13.0.15823.2" />
      </dependentAssembly>
      <dependentAssembly>
      <assemblyIdentity name="GrapeCity.ActiveReports" publicKeyToken="CC4967777C49A3FF" culture="neutral" />
      <bindingRedirect oldVersion="13.0.0.0-13.0.15823.2" newVersion="13.0.15823.2" />
      </dependentAssembly>
      <dependentAssembly>
      <assemblyIdentity name="GrapeCity.ActiveReports.Core.Rdl" publicKeyToken="CC4967777C49A3FF" culture="neutral" />
      <bindingRedirect oldVersion="1.0.0.0-1.0.1617.0" newVersion="1.0.1617.0" />
      </dependentAssembly>
      <dependentAssembly>
      <assemblyIdentity name="GrapeCity.ActiveReports.Core.Export.Excel.Page" publicKeyToken="CC4967777C49A3FF" culture="neutral" />
      <bindingRedirect oldVersion="1.0.0.0-1.0.1617.0" newVersion="1.0.1617.0" />
      </dependentAssembly>
      <dependentAssembly>
      <assemblyIdentity name="GrapeCity.ActiveReports.Core.Export.Html.Page" publicKeyToken="CC4967777C49A3FF" culture="neutral" />
      <bindingRedirect oldVersion="1.0.0.0-1.0.1617.0" newVersion="1.0.1617.0" />
      </dependentAssembly>
      <dependentAssembly>
      <assemblyIdentity name="GrapeCity.ActiveReports.Core.Rendering" publicKeyToken="CC4967777C49A3FF" culture="neutral" />
      <bindingRedirect oldVersion="1.0.0.0-1.0.1617.0" newVersion="1.0.1617.0" />
      </dependentAssembly>
      <dependentAssembly>
      <assemblyIdentity name="GrapeCity.ActiveReports.Core.Drawing.Gdi" publicKeyToken="CC4967777C49A3FF" culture="neutral" />
      <bindingRedirect oldVersion="1.0.0.0-1.0.1617.0" newVersion="1.0.1617.0" />
      </dependentAssembly>
      <dependentAssembly>
      <assemblyIdentity name="GrapeCity.ActiveReports.Core.DataProviders" publicKeyToken="CC4967777C49A3FF" culture="neutral" />
      <bindingRedirect oldVersion="1.0.0.0-1.0.1617.0" newVersion="1.0.1617.0" />
      </dependentAssembly>
      <dependentAssembly>
      <assemblyIdentity name="GrapeCity.ActiveReports.Core.Export.Text.Page" publicKeyToken="CC4967777C49A3FF" culture="neutral" />
      <bindingRedirect oldVersion="1.0.0.0-1.0.1617.0" newVersion="1.0.1617.0" />
      </dependentAssembly>
    </assemblyBinding>
</runtime>
</configuration>
<!--ProjectGuid: D6087EB7-3F87-43C7-8ACD-2B3B772D1A6D-->

KearneyKang 发表于 2019-3-7 13:42:12

谢谢热心反馈
页: [1]
查看完整版本: WebDesigner_MVC IIS发布配置修改参考