If you cannot remote debug your solution you could try to comment out the UseExceptionHandler() and add UseDeveloperExceptionPage() for all configurations. But be very careful doing this, because hackers love developer exception information, so keep this code change live as short as possible.
Swapping to Development Mode on Production Server
Kmcnet
806
Reputation points
Hello everyone and thanks for the help in advance. I need to debug an Asp.Net Core MVC application on a production server as I am receiving the generic error page from one particular dataset, but cannot reproduce it on a test machine. I have read some articles on enabling development mode, but most seem to require global changes to the production server which really isn't possible. Server is running Windows Server 2022 and developed using VS 2022. Any help would be appreciated.