Hello team,
i'm new in asp.net core 6. i want to publish my created project on IIS but it display error after publish on IIS as below.
HTTP Error 500.19 - Internal Server Error.
The requested page cannot be accessed because the related configuration data for the page is invalid.
And also display error message while selecting default document as below.
There was an error while performing this operation.
directory path\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="dotnet" arguments=".\CURD.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" />
</system.webServer>
</location>
</configuration>
<!--ProjectGuid: dee1b362-e90a-4971-99c0-9fece793f344-->
Please help me to resolve this issue.
I'm unable to publish web porject on IIS.