MDrivenServerCore in IIS
Hans Karlsen (talk | contribs) No edit summary |
Hans Karlsen (talk | contribs) No edit summary |
||
Line 5: | Line 5: | ||
# Change the web.config: | # Change the web.config: | ||
<aspNetCore processPath=".\AppCompleteGenericCore.exe" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" '''arguments="-iis=<nowiki>https://localhost/mdrCore1</nowiki>"''' /> SET THE URL YOUR APP SHOULD USE | <aspNetCore processPath=".\AppCompleteGenericCore.exe" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" '''arguments="-iis=<nowiki>https://localhost/mdrCore1</nowiki>"''' /> SET THE URL YOUR APP SHOULD USE | ||
Complete web.config | |||
When you want to debug from VS - set argument -iis=https://localhost/mdrcore1/ or the name you have , stop apppool, compile, then start apppool and app - navigate via browser | When you want to debug from VS - set argument -iis=https://localhost/mdrcore1/ or the name you have , stop apppool, compile, then start apppool and app - navigate via browser |
Revision as of 10:57, 16 October 2023
To host .net core in IIS:
- install runtime-aspnetcore-7.0.<lastet>-windows-hosting-bundle-installer
- create new apppool (only 1 app per pool), set apppool to "No managed code"
- Extract zip of installation into your site folder
- Change the web.config:
<aspNetCore processPath=".\AppCompleteGenericCore.exe" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" arguments="-iis=https://localhost/mdrCore1" /> SET THE URL YOUR APP SHOULD USE
Complete web.config
When you want to debug from VS - set argument -iis=https://localhost/mdrcore1/ or the name you have , stop apppool, compile, then start apppool and app - navigate via browser
This page was edited 19 days ago on 04/13/2024. What links here