Search code examples
c#asp.net-mvc.net-corenopcommerce-4.3

HTTP Error 500.0 - ASP.NET Core IIS hosting failure (in-process) in Dot net core 3.1


**I had checked all possible ways to Solve this error like

  1. installed dot net core 3.1 runtime environment
  2. set AspNetCoreHostingModel as OutProcess But still getting this error when i'm trying to set my Default Nopcommerce 4.3 Project on IIs to run on it . Please Help as I already spent too much time to solve this error**

enter image description here


Solution

  • I struggled a lot to find out this problem's solution . after 4 5 days research, I come to know the exact solution. Kindly follow all the below steps, definatly it will work for Nopcommerce 4.3 Issue using dotnetcore 3.1 or normal dotnetcore 3.1 project.

    Step1 : check dotnet version and sdk using cmd enter image description here

    Step 2: add the IISUSER or you can also give Everyone permission to the main folder

    Step 3: If it is nopcommerce 4.3 project then configure the path

    enter image description here and paste below folders in bin->debug->netcoreapp3.1

    App_Data,Views,wwwroot,Plugins,Themes,logs,Areas/Views,web.config

    Note : this is the main solution after adding the web.config under bin->debug->netcoreapp3.1

    <aspNetCore processPath="C:\Program Files\dotnet\dotnet.exe" arguments=".\Nop.Web.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false" startupTimeLimit="3600" hostingModel="InProcess">
    

    enter image description here

    Note : If you have configured your site already in iis, then do the last step reset the iis using cmd. open cmd as administrator and run command iisreset enter image description here

    I hope this will resolve your all issues