Rectangle 27 0

.net 3.5 URL Routing is not working in IIS 7.0 witrh apllication pool asp.net 2.0 Classical 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>

I have added the given code in my web.config, after that it gives the 500 Internal server error...

Probably an error in your config, did you add it into <system.webServer>? Can you post what you have? Sorry just realised I gave you wrong link as well, I'll fix.

have a look a the error message, or post your config.

just realised in your question you refer to .net 2.0, routing is only available in 3.5 SP1 - are you using that?

Note