MDrivenServerCore in IIS
Hans Karlsen (talk | contribs) No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
To host .net core in IIS: | 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 AppPooll to "No managed code" | ||
# Extract zip of installation into your site folder | # Extract zip of installation into your site folder | ||
# 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 | Complete web.config: | ||
<pre> | <pre> | ||
<?xml version="1.0" encoding="utf-8"?> | <?xml version="1.0" encoding="utf-8"?> | ||
Line 21: | Line 21: | ||
</pre> | </pre> | ||
When you want to debug from VS - set argument -iis=https://localhost/mdrcore1/ or the name you have , stop | 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. | ||
==== Turnkey core in IIS ==== | ==== Turnkey core in IIS ==== | ||
The | The Turnkey core can also be hosted in IIS. In its Web.config, point out its target URL just like for MDrivenServer Core. Also, add an [[MDrivenServerOverride]].xml file in its App_Data so that your MDrivenServer may be found. |
Revision as of 06:53, 17 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 AppPooll 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:
<?xml version="1.0" encoding="utf-8"?> <configuration> <location path="." inheritInChildApplications="false"> <system.webServer> <handlers> <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" /> </handlers> <aspNetCore processPath=".\AppCompleteGenericCore.exe" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" arguments="-iis=https://localhost/MDRDebug" /> </system.webServer> </location> </configuration> <!--ProjectGuid: 3F248237-FF1B-4F4B-9029-DB6440643978-->
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.
Turnkey core in IIS
The Turnkey core can also be hosted in IIS. In its Web.config, point out its target URL just like for MDrivenServer Core. Also, add an MDrivenServerOverride.xml file in its App_Data so that your MDrivenServer may be found.
This page was edited more than 8 months ago on 05/21/2024. What links here