Detailed Error messages on Azure
<configuration>
<system.webServer>
<aspNetCore processPath="dotnet" arguments=".\YourApp.dll">
<environmentVariables>
<environmentVariable name="ASPNETCORE_DETAILEDERRORS" value="true" />
</environmentVariables>
</aspNetCore>
</system.webServer>
</configuration>var app = builder.Build();
if (app.Environment.IsDevelopment())
{
app.UseDeveloperExceptionPage();
}
else
{
app.UseExceptionHandler("/Error");
app.UseHsts();
}
app.Run();Last updated