private static void EnsureShimRegistered(Configuration.Config c) { lock (lockShim) { if (shim == null) { var s = new VirtualPathProviderShim(c); HostingEnvironment.RegisterVirtualPathProvider(s); shim = s; } } }