1

I have written a custom VirtualPathProvider for ASP.NET MVC 2 that searches assemblies for views and static content so that I can reuse content in multiple sites. It works just fine while using Cassini, but when I deploy the site to a server running IIS 7, static files are just returning a 404 and not even getting routed through the AssemblyPathProvider (the class I wrote). Does anyone know how to force IIS to work the same as Cassini in this regard?

Daniel
  • 41
  • 3

1 Answers1

0

IIS and Cassini are definately two different beasts. I would agree with @Sayed in that you should try to opt to use IIS, especially since your production server is running IIS.

In that regard, I would further recommend that you use IIS Express for development. It is lightweight, and doesn't require admin privileged on your machine. It also behaves like IIS because it is IIS.

Here's some links for more info:

Lee DeLapp
  • 341
  • 1
  • 2
  • 9