Reputation: 11
How do I run Orchard Core in IIS on my local machine. I am able to run the site by using dotnet run, but every time I create a new site in IIS with the physical path OrchardCore\src\OrchardCore.Cms.Web, I get a 403 error. I added IIS in the security tab and gave it full permission but I am not sure how to continue.
Upvotes: 1
Views: 1352
Reputation: 5100
Hey to run your site in IIS you'll need to do the following
net stop was /y
(stops IIS).net start w3svc
(start IIS).dotnet publish --configuration Release
in your project root.bin/Release/{TARGET FRAMEWORK}/publish
to you IIS physical path.Official docs are here. If you need more help, there are also different ways of hosting .net core apps, In-process vs Out-of-process hosting.
Upvotes: 2