Website Error: The directory '/App_GlobalResources/' is not allowed because the application is precompiled

Noorann Tech 0 Reputation points
2024-03-26T19:01:02.3533333+00:00

Hi

At the end of "Publish" of my C# Azure website, I see the following error in the output window:
"A call to warmup your site failed with response code: 'InternalServerError'."

Then, when accessing my website, I get the following error message:

"The directory '/App_GlobalResources/' is not allowed because the application is precompiled"

How can I fix this error?

Thank you!

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,893 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Noorann Tech 0 Reputation points
    2024-04-04T01:57:07.7133333+00:00

    I tried multiple times with different settings of the "File Publish Options". However none of the variation worked.

    Currently, the website http://noorann.com gives a different error message:

    Method not found: 'Void System.Diagnostics.DiagnosticSource.OnActivityImport (System.Diagnostics.Activity, System.Object)'.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Stack Trace:
    [MissingMethodException: Method not found: 'Void System.Diagnostics.DiagnosticSource.OnActivityImport(System.Diagnostics.Activity, System.Object)'.] Microsoft.AspNet.TelemetryCorrelation.ActivityHelper.CreateRootActivity(HttpContext context, Boolean parseHeaders) +0 Microsoft.AspNet.TelemetryCorrelation.TelemetryCorrelationHttpModule.Application_BeginRequest(Object sender, EventArgs e) +84 System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +201 System.Web.<>c__DisplayClass285_0.<ExecuteStepImpl>b__0() +24 System.Web.StepInvoker.Invoke(Action executionStep) +100 System.Web.<>c__DisplayClass4_0.<Invoke>b__0() +17 Microsoft.AspNet.TelemetryCorrelation.TelemetryCorrelationHttpModule.OnExecuteRequestStep(HttpContextBase context, Action step) +64 System.Web.<>c__DisplayClass284_0.<OnExecuteRequestStep>b__0(Action nextStepAction) +55 System.Web.StepInvoker.Invoke(Action executionStep) +84 System.Web.<>c__DisplayClass4_0.<Invoke>b__0() +17 Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule.OnExecuteRequestStep(HttpContextBase context, Action step) +124 System.Web.<>c__DisplayClass284_0.<OnExecuteRequestStep>b__0(Action nextStepAction) +55 System.Web.StepInvoker.Invoke(Action executionStep) +84 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +100 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +73

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.