URL Routing is not working in IIS 7.0 witrh apllication pool asp.net 2.0 Classical Mode
I have implemented the URL Routing in my projects I have followed the below article: URL Routing DEMO
This URL Routing Demo works fine in my "IIS 7.0 with a开发者_JS百科pplication pool asp.net 2.0 Integrated Mode"
but not works(gives 404 error) when I have set it as "IIS 7.0 with application pool asp.net 2.0 Classical Mode"
i need a configuration for IIS 7.0 with application pool configured as classic mode in asp.net 2.0 .
Please specify your configuration for above project to work(or routing to work)
Thanks....
In classic mode IIS7 you basically need this added to your config. See here for more info (scroll down to Wildcard script mapping in IIS 7 classic pipeline mode).
<system.webServer>
...
<handlers accessPolicy="Read, Script">
...
<remove name="StaticFile" />
<add name="ASP.NET-ISAPI-2.0-Wildcard"
path="*" verb="GET,HEAD,POST,DEBUG"
modules="IsapiModule"
scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll"
preCondition="classicMode,runtimeVersionv2.0,bitness32" responseBufferLimit="0" />
<add name="StaticFile"
path="*" verb="*"
modules="StaticFileModule,DefaultDocumentModule,DirectoryListingModule"
resourceType="Either" requireAccess="Read" />
</handlers>
...
</system.webServer>
精彩评论