We are excited to announce that the IIS.NET Forums are moving to the new Microsoft Q&A experience. Learn more >

View Complete Thread
  • The resource class for this page was not found. Please check if the resource file exists and try...

    May 14, 2021 11:39 AM|mattiadelta|LINK

    ONLY IN PRODUCTION, it happens that the resource files are not found during the compilation of the page.

    This happens every now and then, at irregular intervals, even after months.

    When it happens, just restart the iis pool and everything works again, can anyone tell me what happens?

    Error 500
    Message: Exception of type 'System.Web.HttpUnhandledException' was thrown.
    Inner Exception: System.InvalidOperationException: The resource class for this page was not found.  Please check if the resource file exists and try again.
       at System.Web.Compilation.LocalResXResourceProvider.CreateResourceManager()
       at System.Web.Compilation.BaseResXResourceProvider.EnsureResourceManager()
       at System.Web.Compilation.BaseResXResourceProvider.GetObject(String resourceKey, CultureInfo culture)
       at System.Web.Compilation.ResourceExpressionBuilder.GetResourceObject(IResourceProvider resourceProvider, String resourceKey, CultureInfo culture, Type objType, String propName)
       at System.Web.Compilation.ResourceExpressionBuilder.GetResourceObject(IResourceProvider resourceProvider, String resourceKey, CultureInfo culture)
       at pCatalogo.CreaStrumentiSopra()
       at pCatalogo.CreateChildControls()
       at System.Web.UI.Control.EnsureChildControls()
       at System.Web.UI.Control.PreRenderRecursiveInternal()
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)