Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Just wondering how I go about displaying errors in the browser (for Umbraco 9), similar to the customerrors web.config setting in previous versions of Umbraco? I am using IIS to run the site.
If you use the default template it is configured to only show developer exception pages when running in development
From the startup.cs:
/// <summary> /// Configures the application /// </summary> public void Configure(IApplicationBuilder app, IWebHostEnvironment env) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); }
On a server/IIS you can specify the environment using this environment variable (Can be setup per application pool, IIRC)
"ASPNETCORE_ENVIRONMENT": "Development"
The value defaults to "Production"
Thanks Bjarke! I got it work by adding the environment variable in ApplicationHost.config in the configuration editor in IIS.
https://stackoverflow.com/questions/31049152/publish-to-iis-setting-environment-variable
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
How to display server errors in Umbraco 9
Just wondering how I go about displaying errors in the browser (for Umbraco 9), similar to the customerrors web.config setting in previous versions of Umbraco? I am using IIS to run the site.
If you use the default template it is configured to only show developer exception pages when running in development
From the startup.cs:
On a server/IIS you can specify the environment using this environment variable (Can be setup per application pool, IIRC)
The value defaults to "Production"
Thanks Bjarke! I got it work by adding the environment variable in ApplicationHost.config in the configuration editor in IIS.
https://stackoverflow.com/questions/31049152/publish-to-iis-setting-environment-variable
is working on a reply...