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

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

Post by Anonymous »

Problem: Die Standard -URL funktioniert bei der Bereitstellung von ASP.NET Core 8 MVC auf IIS (Windows Server). Es funktioniert korrekt in der lokalen Entwicklung - wenn ich die Anwendung starte, öffnet es 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