VirtualPathProvider in MVC 5
I can't seem to get a custom VirtualPathProvider working in asp.net MVC 5. The FileExists method returns true but then the GetFile method isn't called. I believe this is because IIS takes over the request and does not let .NET handle it. I have tried setting RAMMFAR and creating a custom handler, as in this solution https://stackoverflow.com/a/12151501/801189 but still no luck. I get a error 404. My Custom Provider: public class DbPathProvider : VirtualPathProvider { public DbPathProvider() : base() { } private static bool IsContentPath(string virtualPath) { var checkPath = VirtualPathUtility