In ASP.NET 5, the configuration changes dramatically. We no longer have the web.config . Instead, we can use JSON and other parameters, depending on how we set things up in our Startup class. Unlike web.config , this configuration is usually not part of wwwroot , and there is no danger that clients will be able to access it.
And yet in the ASP.NET 5 project templates there is a web.config in wwwroot with the following contents:
<?xml version="1.0" encoding="utf-8"?> <configuration> <system.webServer> <handlers> <add name="httpPlatformHandler" path="*" verb="*" modules="httpPlatformHandler" resourceType="Unspecified"/> </handlers> <httpPlatform processPath="%DNX_PATH%" arguments="%DNX_ARGS%" stdoutLogEnabled="false" startupTimeLimit="3600"/> </system.webServer> </configuration>
It seems to me that this may be what the hosting server is looking at runtime, regardless of the configuration of the application.
Can someone shed some light on why this is necessary and how it works?
web-config asp.net-core
Gigi
source share