My application runs fine within IIS Express on my development workstation, but I am having trouble deploying it to IIS. I receive the following error when I browse to the ap
I had to set it in the project properties otherwise it just kept resetting my web.config changes
I changed the specification in Web.config to run out of process. Originally the specification was for InProcess as follows:
<aspNetCore processPath="dotnet" arguments=".\Cashflow.dll" stdoutLogEnabled="false" hostingModel="InProcess" stdoutLogFile=".\logs\stdout">
I changed this to OutOfProcess:
<aspNetCore processPath="dotnet" arguments=".\Cashflow.dll" stdoutLogEnabled="false" hostingModel="OutOfProcess" stdoutLogFile=".\logs\stdout">
and Bingo! The application runs as expected.
Can anyone explain why?
YOu can set OutOfProcess through Project--> Right click -->Properties-->Debug-->Hosting Model