「WebsiteA」試圖在其中託管另一個應用程序「API」。使用名爲「服務」的文件夾。從我讀過的子應用程序的工作中,我必須將我的處理程序移至父配置。所以,作爲新的.NET核心我敢肯定,我失去了一些東西簡單,但在父像這樣設置的處理程序:ASP.NET Core Web應用程序的Web.config設置作爲ASP.NET Core Web應用程序中的子應用程序?
<system.webServer>
<handlers>
<add name="aspNetCoreAPI" path="services\*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />
</handlers>
<aspNetCore processPath="dotnet" arguments=".\websiteA.dll" stdoutLogEnabled="true" stdoutLogFile=".\logs\stdout" />
<aspNetCoreAPI processPath="dotnet" arguments=".\services\api.dll" stdoutLogEnabled="true" stdoutLogFile=".\logs\stdout" />
</system.webServer>
似乎aspNetCoreAPI標籤是一個沒有沒有爲應用程序拒絕配置格式不正確。
理想情況下,web.config應該如何設置在這種api應用程序的子應用程序場景中?
是的,我的思維很不錯,發佈我的解決方案讓其他人呆在同一個地方。 – mservais