A
A
Alyosha2018-02-19 20:22:25
ASP.NET
Alyosha, 2018-02-19 20:22:25

How to properly set web.config in ASP.NET Core 2.0 application?

In general, why do I want to add web.config? I was advised by the support service from reg.ru. The first screen is the launch of the site with the web.config file, the second - without it. It stupidly doesn't work. And the usual applications are not Core - I work
Created a web.confog file

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <!-- To customize the asp.net core module uncomment and edit the following section. 
  For more info see https://go.microsoft.com/fwlink/?linkid=838655 -->
  <system.webServer>
    <handlers>
      <remove name="aspNetCore" />
      <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />
    </handlers>
    <aspNetCore processPath="%LAUNCHER_PATH%" arguments="%LAUNCHER_ARGS%" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false" />
  </system.webServer>
</configuration>

What is the most important thing to configure here in order for the project to work?
5a8b125c2c19e295126816.png5a8b12610af0d297081535.png

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