A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
AI OnAI Off
A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
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):