A
A
artshelom2021-07-28 15:13:49
IIS
artshelom, 2021-07-28 15:13:49

How to publish asp core via IIS?

I'm trying to publish the asp.core 3.1 server via IIS, the config 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=".\SyncDatabase.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" />
    </system.webServer>
  </location>
</configuration>


In the application pool: Environment version: no managed code
Permission like everything is there, when you open the link, it gives a 500 error. Logs do not write anywhere, How to make me write logs or understand what the problem is, I look at the logs:
C:\Windows\System32\LogFiles
and in the folder with dll

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question