© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•14mo ago•
38 replies
Angius

Aspire project won't run if `applicationUrl` given in `launchSettings.json`

Weirdest shit ever...
"profiles": {
  "Ogma3": {
    "commandName": "Project",
    "launchBrowser": true,
    "environmentVariables": {
      "ASPNETCORE_ENVIRONMENT": "Development"
    },
    "applicationUrl": "https://localhost:5001"
  }
}
"profiles": {
  "Ogma3": {
    "commandName": "Project",
    "launchBrowser": true,
    "environmentVariables": {
      "ASPNETCORE_ENVIRONMENT": "Development"
    },
    "applicationUrl": "https://localhost:5001"
  }
}

and going to
https://localhost:5001
https://localhost:5001
results in endless loading until the request times out, but
"profiles": {
  "Ogma3": {
    "commandName": "Project",
    "launchBrowser": true,
    "environmentVariables": {
      "ASPNETCORE_ENVIRONMENT": "Development"
    }
  }
}
"profiles": {
  "Ogma3": {
    "commandName": "Project",
    "launchBrowser": true,
    "environmentVariables": {
      "ASPNETCORE_ENVIRONMENT": "Development"
    }
  }
}

makes the link not show on Aspire dashboard, true, but manually going to
https://localhost:5001
https://localhost:5001
works just peachy...

My Aspire config if it matters:
var builder = DistributedApplication.CreateBuilder(args);

var sqlPassword = builder.AddParameter("postgres-password", secret: true);
var sqlUsername = builder.AddParameter("postgres-username", secret: true);

var database = builder
    .AddPostgres("postgres", sqlUsername, sqlPassword)
    .WithDataVolume()
    .WithLifetime(ContainerLifetime.Persistent)
    .WithPgWeb()
    .AddDatabase("ogma3-db");

builder
    .AddProject<Projects.Ogma3>("ogma3")
    .WithReference(database)
    .WaitFor(database);

builder.Build().Run();
var builder = DistributedApplication.CreateBuilder(args);

var sqlPassword = builder.AddParameter("postgres-password", secret: true);
var sqlUsername = builder.AddParameter("postgres-username", secret: true);

var database = builder
    .AddPostgres("postgres", sqlUsername, sqlPassword)
    .WithDataVolume()
    .WithLifetime(ContainerLifetime.Persistent)
    .WithPgWeb()
    .AddDatabase("ogma3-db");

builder
    .AddProject<Projects.Ogma3>("ogma3")
    .WithReference(database)
    .WaitFor(database);

builder.Build().Run();
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ launchSettings.json being ignored completely
C#CC# / help
3y ago
launchSettings.json isnt working on linux
C#CC# / help
4y ago
ASP.NET Core, prevent environment variables being exposed in launchsettings.json
C#CC# / help
16mo ago
✅ Read `launchsettings.json` environment variable from a terminal script in Rider
C#CC# / help
2y ago