Code2night
  • Home
  • Guest Posts
  • Tutorial
  • Languages
  • Post Blog
  • Tools
    • JSON Beautifier
    • HTML Beautifier
    • XML Beautifier
    • CSS Beautifier
    • JS Beautifier
    • PDF Editor
    • Word Counter
    • Base64 Encode/Decode
    • Diff Checker
    • JSON to CSV
    • Password Generator
  • Register
  • Login
  1. Home
  2. Blogpost

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

Date- Nov 29,2023

10941

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

AspNet
C#
programming
AspNet MVC
c programming
AspNet Core
C
software development
tutorial
MVC
memory management
Paypal
coding
coding best practices
data structures
programming tutorial
tutorials
object oriented programming
Slick Slider
StripeNet
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, Haryana, India
info@code2night.com
Quick Links
  • Home
  • Blogs
  • Tutorials
  • About Us
  • Contact
  • Privacy Policy
  • Terms & Conditions
  • Guest Posts
Free Dev Tools
  • JSON Beautifier
  • HTML Beautifier
  • CSS Beautifier
  • JS Beautifier
  • Password Generator
  • QR Code Generator
  • Hash Generator
  • Diff Checker
  • Base64 Encode/Decode
  • Word Counter
By Language
© 2026 Code2Night. All Rights Reserved.
Made with for developers  |  Privacy  ยท  Terms
Translate Page