Die Standard -URL funktioniert bei der Bereitstellung der .NET 8 MVC -Anwendung auf IIS in Windows Server nicht richtigC#

Ein Treffpunkt für C#-Programmierer
Anonymous
 Die Standard -URL funktioniert bei der Bereitstellung der .NET 8 MVC -Anwendung auf IIS in Windows Server nicht richtig

Post by Anonymous »

Problem: Standard -URL funktioniert bei der Bereitstellung von .NET 8 MVC auf IIS (Windows Server) < /p>
In meiner .NET 8 MVC -Anwendung habe ich die Launchurl in der Datei laundernSettings.json angegeben. Es funktioniert korrekt in der lokalen Entwicklung - wenn ich die Anwendung starte, öffnet sie automatisch die angegebene Start -URL (z. B. http: // localhost: 20395/auth/login). http: // localhost/myappname/auth/login.

Code: Select all

   { "profiles": { "http": { "commandName": "Project", "launchBrowser": true, "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" }, "launchUrl": "Auth/Login", "dotnetRunMessages": true, "applicationUrl": "http://localhost:5298" }, "IIS Express": { "commandName": "IISExpress", "launchBrowser": true, "launchUrl": "Auth/Login", "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development", "ASPNETCORE_HOTRELOAD_MAXRULES": "15000" } }, "WSL": { "commandName": "WSL2", "launchBrowser": true, "launchUrl": "http://localhost:5298", "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development", "ASPNETCORE_URLS": "http://localhost:5298" }, "distributionName": "" } }, "$schema": "http://json.schemastore.org/launchsettings.json", "iisSettings": { "windowsAuthentication": false, "anonymousAuthentication": true, "iisExpress": { "applicationUrl": "http://localhost:20395", "sslPort": 0 } } }

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post