Calling all developers! We invite you to provide your input on Feature Experimentation by completing this brief survey.
Calling all developers! We invite you to provide your input on Feature Experimentation by completing this brief survey.
public static void RegisterVirtualPathProvider(VirtualPathProvider virtualPathProvider)
{
if (_theHostingEnvironment == null)
{
throw new InvalidOperationException();
}
if (!BuildManager.IsPrecompiledApp)
{
RegisterVirtualPathProviderInternal(virtualPathProvider);
}
}
There is a workaround if you want to precompile the site: http://sunali.com/2008/01/09/virtualpathprovider-in-precompiled-web-sites/
Kind regards,
Fredrik Haglund,
INEXOR AB - http://blog.fredrikhaglund.se
Here's another EPiServer-specific workaround for virtual path providers in precompiled websites (it's based on the workaround Fredrik mentions):