C
C#•13mo ago
Natty

Never seen before error message pop up.

my visual studio start button changed from "https" to "start" and now my project won't run. This is my launchSettings.json file, but I never changed anything:
{
"profiles": {
"http": {
"commandName": "Project",
"commandLineArgs": null
},
"https": {
"commandName": "Project",
"commandLineArgs": ""
},
"IIS Express": {
"commandName": "IISExpress",
"commandLineArgs": null
}
}
}
{
"profiles": {
"http": {
"commandName": "Project",
"commandLineArgs": null
},
"https": {
"commandName": "Project",
"commandLineArgs": ""
},
"IIS Express": {
"commandName": "IISExpress",
"commandLineArgs": null
}
}
}
No description
5 Replies
Natty
NattyOP•13mo ago
Even when removing commandLineArgs, the project looks like it's running, but no Swagger pop up, no frontend pop up, etc. Ok changing every command line to an empty string, does make the https button appear again. Yet, swagger still doesn't pop up like it normally would. All I've done is added a xUnit test project, and referenced the server project. Yeah so Visual Studio is clearly running, console pop up happens for the server, but trying to access localhost for swagger doesn't work.
Natty
NattyOP•13mo ago
No description
Natty
NattyOP•13mo ago
Hm looks like it's running in Prod environment, hence why swagger isn't being started...
Natty
NattyOP•13mo ago
So my launchsettings looks like this now:
No description
Natty
NattyOP•13mo ago
I confirmed I am in running in development environment, yet still, Swagger does not pop up 😦 Ok looks like adding:
"https": {
"commandName": "Project",
"launchBrowser": true,
"launchUrl": "swagger",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"https": {
"commandName": "Project",
"launchBrowser": true,
"launchUrl": "swagger",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
Made it work. Now to figure out why the frontend doesn't start automatically anymore. Guess i can just do npm run dev for the frontend, not a big deal. No clue why my routing changed very confused lol. Was localhost:7165 and now it's 5001.
Want results from more Discord servers?
Add your server