0

I would like to use routing to caching to client webbrowsers dynamic images generated.

I have created this routing code for .Net 4.0

routes.RouteExistingFiles = false;
routes.MapPageRoute("ImageWithLogo", "imageWithLogo/{Id}/{Width}/{Height}/image.jpg", "~/utils/imageWithLogo.aspx");

Trying this for example "imageWithLogo/1623/100/200/image.jpg" I always get the error Error HTTP 404.0 - Not Found, IIS always try to find the imageFile in web folder.

How can i make that IIS don't try to find the file in the web folders and always apply the routing?

Thanks

Marc Cals
  • 2,963
  • 4
  • 30
  • 48

1 Answers1

0

Sorry, I have find the solution in another Question in stackoverflow ASP.NET 4.0 URL Routing HTTP Error 404.0 - Not Found

Community
  • 1
  • 1
Marc Cals
  • 2,963
  • 4
  • 30
  • 48