-1
I have a web api, which when running on Iss presents error 500.19 in the browser, I am very new in the subject, I did some research this error may be on web.cofing. If anyone can help me, thank you! Follow Code of the web.config
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<location path="." inheritInChildApplications="false">
<system.webServer>
<defaultDocument>
<files>
<add value="Index.cshtml" />
</files>
</defaultDocument>
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
</handlers>
<aspNetCore processPath=".\ApiSa.exe" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" />
</system.webServer>
</location>
</configuration>
It may be in the
ApplicationHost.config
or in theWeb.config
, basically is when your XML is poorly formed, with invalid tags, or incorrect values. It can be one or more elements with problem inside the document, but it can also be other things, just looking at the complete error, turn on the DEBUG (if it is off) and will present the complete error on the page. Or look at the visualstudio itself.– Guilherme Nascimento
I have checked and Debug shows no error!
– Matheus Vinicius
can send a print of what appears in the browser?
– Guilherme Nascimento