Code2night
  • Home
  • Guest Posts
  • Tutorial
  • Languages
    • Angular
    • C
    • C#
    • HTML/CSS
    • Java
    • JavaScript
    • Node.js
    • Python
    • React
    • SQL Server
    • TypeScript
  • Post Blog
  • Tools
    • JSON Beautifier
    • HTML Beautifier
    • XML Beautifier
    • CSS Beautifier
    • JS Beautifier
    • PDF Editor
  • Register
  • Login
  1. Home
  2. Blogpost

Error-An error occurred while processing your request in .Net core IIS

Date- Nov 29,2023

10869

Free Download Pay & Download
Asp net Core IIS

Error. An error occurred while processing your request.

Hello guys sometimes when we publish out asp.net core application on IIS and if there is some error in the application code then it often redirect to Error screen having following message displayed in the screenshot below.

Error.

An error occurred while processing your request.

Request ID: 00-f00f219e17c51e6043908d6ae59e7c64-b20328e5bb969dbb-00

Development Mode

Swapping to Development environment will display more detailed information about the error that occurred.

The Development environment shouldn't be enabled for deployed applications. It can result in displaying sensitive information from exceptions to end users. For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development and restarting the app.


So we will see how to fix following error in Asp.Net Core on IIS to display the exact error message

So this error generally shows up because of web config settings of our asp.net core application . To fix this you have to go to the webconfig of your application and edit that with notepad

Find following line in the web.config file

 <aspNetCore processPath="dotnet" arguments=".\Yourapplication.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" />

Replace that with following line, here change the name of application.exe file with your own application.exe file and then save it and restart the application.

<aspNetCore processPath=".\Yourapplication.exe" arguments="" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false">
<environmentVariables> <environmentVariable name="ASPNETCORE_ENVIRONMENT" value="Development" /> </environmentVariables> </aspNetCore>

Now just reload the application and it must show the exact error message faced by your application and you can fix that error.

So this is how we can find the exact error message in the asp.net core application on IIS and fix Error-An error occurred while processing your request in .Net core IIS.

S
Shubham Saini
Programming author at Code2Night — sharing tutorials on ASP.NET, C#, and more.
View all posts →

Related Articles

HTTP Error 500.32 Failed to load ASP NET Core runtime
Dec 06, 2023
Integrate Razorpay Payment Gateway in ASP.NET Core 8.0
Dec 05, 2023
HTTP Error 502.5 - ANCM Out Of Process Startup Failure
Oct 11, 2020
How to set Date and time format in IIS Manager
Aug 05, 2020

Comments

Tags

Swagger UI
Swashbuckle
SwashbuckleAspNetCore
Rest API
Postman
Api Testing
ITextSharp
Export to Pdf
AspNet Core
AspNet
C#
View to Pdf in Aspnet
Scheduler
Fibonacci series in Java
Display Fibonacci Series
First C# Program
What is C?
C
C Programming
CodeLobster
Free Download for Youtube Subscribers!

First click on Subscribe Now and then subscribe the channel and come back here.
Then Click on "Verify and Download" button for download link

Subscribe Now | 1760
Download
Support Us....!

Please Subscribe to support us

Thank you for Downloading....!

Please Subscribe to support us

Continue with Downloading
Be a Member
Join Us On Whatsapp Join Us On Facebook
Code2Night

A community platform for sharing programming knowledge, tutorials, and blogs. Learn, write, and grow with developers worldwide.

Panipat, India   info@code2night.com

Quick Links
  • Home
  • Blogs
  • Tutorials
  • About Us
  • Contact
  • Privacy Policy
  • Terms & Conditions
  • Guest Posts
Dev Tools
  • JSON Beautifier
  • HTML Beautifier
  • XML Beautifier
  • CSS Beautifier
  • JS Beautifier
  • PDF Editor
By Language
  • Angular
  • C
  • C#
  • HTML/CSS
  • Java
  • JavaScript
  • Node.js
  • Python
  • React
  • SQL Server
  • TypeScript
© 2026 Code2Night. All Rights Reserved.
Built with for developers