mcintyre321 / EmbeddedResourceVirtualPathProvider

A custom VirtualPathProvider for IIS - load views and assets from Embedded Resources in referenced assemblies
http://www.adverseconditionals.com/2011/07/portable-aspnet-code-using.html
MIT License
63 stars 42 forks source link

Check for file/directory before creating cache dependency #3

Closed jpj625 closed 10 years ago

jpj625 commented 10 years ago

When checking the VPP for resources that are handled by other virtual providers, GetCacheDependency throws HttpException with "Directory '[virtual path]' does not exist. Failed to start monitoring file changes." This change verifies that the resource exists to create a dependency on.

This is an alternate patch for the same issue as pull request https://github.com/mcintyre321/EmbeddedResourceVirtualPathProvider/pull/2

mcintyre321 commented 10 years ago

Hope this works :)