This is the first time installing VS2022 on this computer.
Any new projects I have tried launching from Visual Studio seems to launch without error but when I try to load the application through the browser I just get a 404 error.
Here is my launch configuration although, I get the same issue when launching a new core web app…
{
"profiles": {
"Kestrel": {
"commandName": "Project",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"dotnetRunMessages": true,
"applicationUrl": "http://localhost:5238"
},
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"DotNet Commandline": {
"commandName": "Executable",
"executablePath": "C:\Program Files\dotnet\dotnet.exe",
"commandLineArgs": "run --configuration Debug",
"workingDirectory": "C:\Users\jcarr\Workspace\ProductionOutageTracker\Web",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
},
"$schema": "http://json.schemastore.org/launchsettings.json",
"iisSettings": {
"windowsAuthentication": true,
"anonymousAuthentication": false,
"iisExpress": {
"applicationUrl": "http://localhost:36511",
"sslPort": 0
}
}
}
I have tried various launch configurations without success. I have tried creating a brand-new application and I have the same problem, so I don’t believe it’s anything in my program.cs that is failing.
The only thing I have found that works is using the dotnet run command, which I can setup in launch configurations and launch from Visual Studio but then my debug breakpoints gets the error “symbols have not been loaded for this document”
Jason Carr is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.