I want to publish my ASP.Net Core MVC project with Plesk hosting (GoDaddy), the project works without any error locally, but when I publish the project, I get this error, how can I fix it?
HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid.
Module IIS Web Core Notification Unknown Handler Not yet determined Error Code 0x8007000d Config Error Config File ?\G:\PleskVhosts\kodbozuk.com\httpdocs\web.config
This is my web.config
file:
<?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=".\KodBozuk.WEB.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="outofprocess" />.
</system.webServer>
</location>
<system.web>
<compilation tempDirectory="G:\PleskVhosts\kodbozuk.com\tmp" />
</system.web>
</configuration>
Although I've tried to make various changes to the web.config
file, I could not get any results.