Error-An error occurred while processing your request in .Net core IIS | Code2night.com
Code2night
  • Home
  • Blogs
  • Guest Posts
  • Tutorial
  • Post Blog
  • Register
  • Login
  1. Home
  2. Blogpost

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

Date- Nov 29,2023

7288

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.

Comments

Tags

LinkedinLogin
LinkedinProfile
GetLinkedinProfile
C#
Aspnet
MVC
Linkedin
ITextSharp
Export to Pdf
AspNet Core
AspNet
View to Pdf in Aspnet
Model Validation In ASPNET Core MVC 60
Model Validation
Model Validation In ASPNET Core MVC
Model Validation In ASPNET
Image Compression in AspNet
Compress Image in c#
AspNet MVC
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 | 1210
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

Welcome To Code2night, A common place for sharing your programming knowledge,Blogs and Videos

  • Panipat
  • info@Code2night.com

Links

  • Home
  • Blogs
  • Tutorial
  • Post Blog

Popular Tags

Copyright © 2025 by Code2night. All Rights Reserved

  • Home
  • Blog
  • Login
  • SignUp
  • Contact
  • Terms & Conditions
  • Refund Policy
  • About Us
  • Privacy Policy
  • Json Beautifier
  • Guest Posts