解决步骤:
1.web.config中
<configuration> <configSections> ... <section name="rewriter" requirePermission="false" type="Intelligencia.UrlRewriter.Configuration.RewriterConfigurationSectionHandler, Intelligencia.UrlRewriter" /><!--加入此行--> </configSections> ... <system.web> <httpModules> <add name="UrlRewriter" type="Intelligencia.UrlRewriter.RewriterHttpModule, Intelligencia.UrlRewriter" /><!--加入此行--> </httpModules> ... </system.web> ... <system.webServer> <validation validateIntegratedModeConfiguration="false" /> <modules runAllManagedModulesForAllRequests="true"><!--加入此行--> </modules> ...
</configuration>
2. App_Start/RouteConfig.cs文件中
public class RouteConfig { public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.IgnoreRoute("{resource}.apk");// 加入此行 ... } }
3. IIS中配置MIME文件映射
.apk application/vnd.android
时间: 2024-10-26 21:10:14