本文整理自网络,侵删。
以下配置文件支持.aspx、.html ,为大家在Win10 下的IIS 10发布IW提供参考
<?xml version="1.0" encoding="UTF-8"?><!-- For more information on how to configure your ASP.NET application, please visit [URL]http://go.microsoft.com/fwlink/?LinkId=169433[/URL] --><configuration> <appSettings> <add key="webpages:Version" value="2.0.0.0" /> <add key="webpages:Enabled" value="true" /> <add key="PreserveLoginUrl" value="true" /> <add key="ClientValidationEnabled" value="true" /> <add key="UnobtrusiveJavaScriptEnabled" value="true" /> <add key="wwwroot" value="MyWebApp1" /> <add key="Application" value="E:\MySite\MyWebApp1\WebAppISAPI.dll" /> <add key="IWPEnabled" value="false" /> </appSettings> <!-- For a description of web.config changes for .NET 4.5 see [URL]http://go.microsoft.com/fwlink/?LinkId=235367[/URL].
The following attributes can be set on the <httpRuntime> tag. <system.Web> <httpRuntime targetFramework="4.5" /> </system.Web> --> <system.web> <compilation debug="false" targetFramework="4.5"> <assemblies> <add assembly="System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> <add assembly="System.Web.Helpers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> </assemblies> </compilation> <pages> <namespaces> <add namespace="System.Web.Helpers" /> <add namespace="System.Web.Mvc" /> <add namespace="System.Web.Mvc.Ajax" /> <add namespace="System.Web.Mvc.Html" /> <add namespace="System.Web.Routing" /> <add namespace="System.Web.WebPages" /> </namespaces> </pages>
</system.web> <system.webServer> <validation validateIntegratedModeConfiguration="false" /> <modules runAllManagedModulesForAllRequests="true"> <add name="HttpModule_rewriter" type="DTcms.Web.UI.HttpModule" /> </modules> <handlers> <remove name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" /> <remove name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" />
<add name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" 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" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness64" responseBufferLimit="0" /> <add name="html-4.0" path="*.html" verb="GET,HEAD" modules="IsapiModule" scriptProcessor="%SystemRoot%\microsoft.net\framework\v4.0.30319\aspnet_isapi.dll" resourceType="Unspecified" preCondition="classicMode,runtimeVersionv4.0,bitness32" /> </handlers> </system.webServer></configuration>
相关阅读 >>
Delphi xe, xe10, 创建 activeform 和 activex 工程的方法
Delphi 在 webservice 中采用 tsoapattachment 传输文件
更多相关阅读请进入《Delphi》频道 >>