User-183185495 posted
I found that all I simply had to do was add this to my web.csproj file
In Particular these two lines
<AspNetCoreModuleName>AspNetCoreModule</AspNetCoreModuleName>
<AspNetCoreHostingModel>OutOfProcess</AspNetCoreHostingModel>
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<UserSecretsId>aspnet-MISSystem.Web-C84BE257-D3E8-4C20-BD0C-C02208BA1A4D</UserSecretsId>
<AspNetCoreModuleName>AspNetCoreModule</AspNetCoreModuleName>
<AspNetCoreHostingModel>OutOfProcess</AspNetCoreHostingModel>
</PropertyGroup>
My Hosting companie requires me to make a change to the web config after the site has published obv I dont want to have to do this very publish how do I automate this.
They ask to me insert this into the web .config which doesnt exist yet is only created during the publish method in .net core 3.1
<div> <div>
<modules>
<remove name="AspNetCoreModuleV2" />
<add name="AspNetCoreModuleV2" />
</modules>
</div> </div> <div> <div>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<location path="." inheritInChildApplications="false">
<system.webServer>
<modules>
<remove name="AspNetCoreModuleV2" />
<add name="AspNetCoreModuleV2" />
</modules>
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
</handlers>
<aspNetCore processPath=".\MISSystem.Web.exe" stdoutLogEnabled="true" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" />
</system.webServer>
</location>
</configuration>
</div> </div>