with sitecore 8.1, @styles.Render("virtual path") and @scripts.Render("Virtual Path") are working fine. But with Sc9.3, it is stopped working, i am getting 404 error for these in network tab.

Can someone please let me know what is causing this issue.


  • Can you add some more details here such as log errors, implementation is based on global.asax or InitializeRoutes? May 19 '20 at 7:15
  • @MahendraShekhawat here is log error: There is no context database OR content database in Site Specific Alias Resolver. Details: Sitecore.Web.RequestUrl Request is redirected to document not found page. Requested url: /assets/toolkit/forms, User: extranet\Anonymous, Website: exxxxxxxx May 21 '20 at 18:58
  • @MahendraShekhawat MvcHandler.DisableMvcResponseHeader = true; Sitecore.Globalization.Translate.ResetCache(true); AntiForgeryConfig.SuppressXFrameOptionsHeader = true; BundleConfig.RegisterBundles(BundleTable.Bundles); try { this.Container = (IKernel)new StandardKernel(new INinjectModule[0]); new PostNinjectSolrStartUp(this.Container).Initialize(); } May 21 '20 at 19:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.