+
+ if (HostingEnvironment.HaveCustomVPP) {
+ VirtualFile vf = null;
+ VirtualPathProvider vpp = HostingEnvironment.VirtualPathProvider;
+ string vpath = request.FilePath;
+
+ if (vpp.FileExists (vpath))
+ vf = vpp.GetFile (vpath);
+
+ if (vf == null)
+ throw new HttpException (404, "Path '" + vpath + "' was not found.", vpath);
+
+ response.ContentType = MimeTypes.GetMimeType (vpath);
+ response.TransmitFile (vf, true);
+ return;
+ }
+