ASP.NET Dynamic Data and the resource can not be found in IIS 7

by Mikael Henriksson 20. August 2009 22:50

It’s so silly but not enough people have written about it :) I kept getting a strange error while moving a Dynamic Data Entities application from IIS 6 to IIS 7. It said –“The resource ‘/TemplatePage/List.aspx’ can not be found”. I knew of course it had something to do with IIS7 finding what to add to the web.config was a different story.

Found it here: http://blogs.msdn.com/scothu/archive/2008/06/23/how-to-add-dynamic-data-to-an-existing-web-site.aspx

In the <system.webServer>/<modules> section add the following:

<remove name="UrlRoutingModule" /> 
<add name="UrlRoutingModule" type="System.Web.Routing.UrlRoutingModule, System.Web.Routing, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
In the <system.webServer>/<handlers> section add the following:
<add name="UrlRoutingHandler" preCondition="integratedMode" verb="*" path="UrlRouting.axd" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />

Tags:

Dynamic Data

blog comments powered by Disqus

About the author

Life architect specialized in programming

Month List

Widget Twitter not found.

Root element is missing.X