188 questions
-3
votes
0
answers
48
views
Can't create a Postgres database with .NET Aspire
Was trying to create a database (retmarkdb), but only datatabase "postgres" (with password 'retmark123') is created.
// RetmarkApp.AppHost/AppHost.cs
var builder = DistributedApplication....
1
vote
0
answers
64
views
Start Android emulator with .NET Maui app from .NET Aspire dashboard
I have a .NET 10 MAUI app configured with Aspire 13. When I start the Aspire project and the dashboard launches, I ensure that the emulator is running.
Steps to reproduce
Start Visual Studio
Create a ...
Best practices
0
votes
0
replies
30
views
Aspire .NET 9 Blazor Project: InteractiveAuto Globally
I have a question with a setup of one of my components that relies heavily on JSInterop. The component contains a Google map and all of my data for initializing and displaying data on that map needs ...
-1
votes
1
answer
160
views
Aspire publish not creating dockerfile
I’m working with Aspire in a .NET 10 RC2 project.
When I run:
aspire publish
it logs that it’s “creating Docker image”, but no Docker image is actually produced.
I have ran it with --debug and indeed ...
-1
votes
1
answer
79
views
How to change the default HTTP scaler concurrency (10 requests) to 1000 in .NET Aspire?
I’m using .NET Aspire to orchestrate my services, and everything is deployed to Azure Container Apps.
By default for replication, Container Apps seem to use HTTP scaler with a concurrency target of 10 ...
0
votes
1
answer
142
views
Aspire Dockerized Project Fails to Start on Windows — “Address Already in Use” for RabbitMQ/MongoDB, Works on Teammates’ Machines
I have an Aspire project that runs RabbitMQ, MongoDB, and PostgreSQL in Docker containers. My AppHost project defines them like this:
var rabbitMQ = builder.AddRabbitMQ("rabbitmq")
....
0
votes
1
answer
113
views
Azurite in Aspire Integration test
I am using Aspire.Hosting.Testing to setup integration testing. I have already succeed getting sql server to work, but blob storage is still an issue. I need to be able to pass the connectionstring of ...
0
votes
0
answers
44
views
How can I use Service Discovery and Flurl together?
I am using Aspire and have two services, we'll call them api, and mockapi.
I have the two setup as follows with Aspire
var mockapi = builder.AddProject<Projects.MockApi>("mockapi");
...
2
votes
1
answer
204
views
Aspire with a .NET 9 Blazor App: increasing Polly retry for HttpClientFactory while using a Http Message handler
I'm trying to increase my retry duration from the standard 10 seconds in my Blazor application, but the resilience handler doesn't seem to be working. I've tried both of the setups below but my Http ...
1
vote
0
answers
96
views
EF Migration not working: Unable to find SQL Server Connection String when using AddDbContextPool instead of AddSqlServerDbContext
I am trying to generate EF Migrations in a .NET Aspire project. I am following the migration example in the documentation.
Everything works well with this:
builder.AddSqlServerDbContext<...
0
votes
0
answers
29
views
Aspire 9 Service discovery not showing IP
I've configured my Web project to work with my computer's IP (192.168.0.2) creating certificate for https etc. If I use https://192.168.0.2:7058/ all works fine
builder.WebHost.ConfigureKestrel(...
0
votes
1
answer
129
views
Aspire can't connect to Redis in container for SignalR backplane
I have a generic .NET Blazor web application with Aspire enabled and I'm trying to setup SignalR to use Redis as backplane. The Redis is running in a docker/podman container, and Aspire dashboard ...
2
votes
0
answers
156
views
How do I set up .NET Aspire to use Microsoft Entra for a VUE app?
Currently my Aspire AppHost looks like this
var cache = builder.AddRedis("cache");
// Add Key Vault access
var keyVaultUri = builder.Configuration["KeyVault:Uri"];
if (string....
1
vote
0
answers
57
views
ASP.NET Core 9.0 Aspire change endpoints
I've created a standard ASP.NET Core 9 Aspire application with all projects.
All work fine till I use localhost as endpoint for my web app, but obviously, I want to change to local lan IP (192.168.0.2 ...
1
vote
1
answer
69
views
StateHasChanged not re-rendering DOM after SignalR callback
I am working on an application as part of a demo project of things I have learned over the years. This one combines Aspire Orchestration with a Blazor front. Sofar things have been a struggle learning ...
1
vote
1
answer
392
views
Unable to reach deployed .NET Aspire sample project in Azure Container services
I use the sample project of .NET Aspire, support ticket API, locally it runs great only then I deploy the components using azd up, the deployment also works great.
The published API says it can be ...
1
vote
0
answers
309
views
How to configure .NET Aspire to use WSL Docker (Ubuntu) instead of Docker Desktop in Visual Studio
I am running .NET Aspire 9.3 inside Visual Studio 2022 v2 on Windows 11 with WSL (Ubuntu) and Docker installed. However, Aspire defaults to using Docker Desktop, and I want it to use WSL's Docker ...
0
votes
0
answers
56
views
Automated setting of file permission to Full control on windows using a script
Background
I have a dotnet aspire app that is giving me this error message:
Aspire.Hosting.Dcp.dcpctrl.ExecutableReconciler[0]
could not remove process's standard error file {"Executable&...
1
vote
1
answer
295
views
Is it possible to connect an Aspire function app to an already existing azurite docker container instead of using RunAsEmulator?
I am trying to use the Aspire function apps.
builder.AddAzureFunctionsProject<MyProj>("myproj");
There is a WithHostStorage() method which I would like to point at an already running ...
0
votes
1
answer
120
views
Aspire Endpoints Not Showing in Azure
I have an Aspire project in which I've changed the DisplayText of an endpoint using:
.WithUrlForEndpoint("https", url => url.DisplayText = "Blazor")
When running locally, the ...
1
vote
1
answer
476
views
How to connect to SQL instance on Container App in Azure, deployed from Aspire
I have a SQL Server instance running in an Azure Container App, created using .NET Aspire, and I'm trying to connect to it using SQL Server Management Studio (SSMS). Here are the details of my setup:
...
0
votes
0
answers
255
views
Aspire Dashboard is not launching while running tests
In hooks, inside beforetestrun method trying to launch aspire dashboard but failing to do it. purpose of doing it is to check logs for all resources while running tests
apphost > program.cs
...
1
vote
1
answer
378
views
Specifying Ingress in .NET Aspire Deployment using azd
I have a Blazor web application and several API's that I'm orchestrating with Aspire and trying to deploy to Azure Container apps using Azure Developer CLI - azd (v1.14.0)
I'm following this Microsoft ...
1
vote
1
answer
126
views
How to configure Aspire AppHost to use SQL Server for Orleans 9 clustering?
I'm trying to set up a new project using Orleans 9 with Aspire 9, using SQL Server for clustering. I'm having trouble properly configuring Orleans clustering provider in the AppHost.
Here's my current ...
1
vote
0
answers
153
views
How to leverage IOptions in .NET Aspire and have them passed in from the AppHost
I am discovering .NET Aspire and trying to migrate a solution to it. In the solution, I have several Worker applications that are using the HostApplicationBuilder with HostedServices.
Initially these ...