User-29703693 posted
My asp.net core app loads fine when I publish to the website's root directory. However, I would like to publish it to a "sandbox" subfolder. When I try that, I get the error:
Could not load configuration. Exception message: Attribute 'processPath' is required.
Source: IIS AspNetCore Module V2
My web.config file is:
<?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="dotnet" arguments=".\CTM.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" />
</system.webServer>
</location>
</configuration>
Any idea how I can resolve this? Thanks in advance.