188 questions
0
votes
1
answer
51
views
.NET Maui Aspire integration not resolving ASP.NET Core Web API
I am trying to use the new .NET Maui Aspire integration to make my development life easier and I cannot get the service discovery to work where the app detects the API's URL. I'm following this https:/...
1
vote
3
answers
222
views
How come Azure Developer CLI says my Aspire bicep is invalid when running in pipelines?
I recently created a new Aspire project and I'm deploying it to Azure using the Azure DevOps Pipelines.
My goal is to run the pipelines whenever a trigger occurs, generate the infrastructure, ...
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
vote
0
answers
57
views
Docker container routing to YARP fails in Aspire
I have a software solution where there is
an ASP.NET Core 8.0 Web API running on Linux inside a Docker container (edge-service), making HTTPS GET and HTTPS POST to
an ASP.NET Core 8.0 Web API (front-...
3
votes
4
answers
5k
views
how to Skip Api Version Check for Azure blob storage in .NET Aspire
I'm running Azure blob storage by Aspire
var builder = DistributedApplication.CreateBuilder(args);
var blobs = builder.AddAzureStorage("storage")
.RunAsEmulator()
.AddBlobs("...
-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
0
answers
78
views
Dapr / Aspire PubSub not loading component yaml
I am attempting to setup a project with Aspire and DAPR.
I want to register a sidecar in my API and Frontend application that will use pubsub. The pubsub should come from a DAPR yaml component file.
I ...
3
votes
2
answers
2k
views
The SDK 'Aspire.AppHost.Sdk/9.0.0' specified could not be found
After installing Visual Studio Community 2022 to version 17.12.3 and installed the .NET 9.0 Runtime, every time I try to create a new .NET Aspire Starter App project or try to add Aspire to an ...
1
vote
0
answers
67
views
Set Aspire custom container network to bridge
When I created a container using AddContainer it has a default network that is specific to this container, but I want to it have only one network -- bridge. How can I do it?
something like --network ...
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");
...
1
vote
1
answer
248
views
Override default Polly/resilience policy set in ASP.NET Aspire
I have an ASP.NET Aspire application which registers default resillience
builder.Services.ConfigureHttpClientDefaults(http =>
{
// Turn on resilience by default
http....
0
votes
0
answers
61
views
Aspire .NET service discovery in production with keycloak with Docker, overrride endpoint?
I have an issue with the service discovery in Aspire .net with .net 9 and 8 application and keycloak.
The Apphost project works fine:
var builder = DistributedApplication.CreateBuilder(args);
var ...
0
votes
0
answers
127
views
Dotnet Aspire > Failed to debug this project because no SQL Server has been installed on the local machine
I'm trying to setup program.cs in AppHost project with all resources (SQL, API) but unable to spin up SQL project
I want my SQL project to run without any dependency of my SQL credentials. Instead it ...
0
votes
0
answers
26
views
AWS Aspire resource lifetime
I am trying to use Aspire with AWS. I can successfully create an SQS queue and configure it, but when I am finished debugging I want the AWS resources to close down. If I cant do this I am going to ...
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
1
answer
97
views
AppHost Testing Authorization header missing
I'm using .Net Aspire AppHost project and I'm writing a test to check an OKTA token. The problem is when I check the request.
Headers in the controller the values are missing. I'm sending the ...
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....
0
votes
0
answers
38
views
.NET Aspire 9.3 host fails to start in drone.io pipeline
I want to run my aspire test application in a drone.io pipeline. In a pipeline I face an issue that apphost cannot be started and container get killed after some time. The question is how to get more ...
0
votes
2
answers
1k
views
How run all .NET Aspire connected Web APIs with correct ports?
How to configure .NET Aspire tests to use specific ports from launchSettings.json for each project?
I am using .NET Aspire to run all my projects perfectly. Now, I am creating tests and want them to ...
4
votes
1
answer
1k
views
How to resolve "run session could not be started: IDE returned a response indicating failure - Status: 400 Bad Request" in Visual Studio?
I encountered an issue when trying to run a new project in Visual Studio (latest version). Upon execution, the following error is displayed:
Aspire.Hosting.Dcp.dcpctrl.ExecutableReconciler[0] run ...
0
votes
1
answer
347
views
Multiple Azure Functions in Aspire with same code but different settings
I would like to configure Aspire to have two different versions of the same C# Azure Durable Functions project with different settings.
builder
.AddAzureFunctionsProject"db1")
.WithHostStorage(...
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 ...
1
vote
2
answers
224
views
How to connect to kafka port and do integration testing by reading topic and message
I am trying to connect to Kafka port exposed by me in apphost in integrationtest.cs file
after connecting to port, go and read all kafka topics and open a specific topic and read the messages in it
...
1
vote
0
answers
196
views
How to subscribe Azure Service bus topic using dapr and ASP.NET Core Web API
I'm doing a POC on developing micro services using .NET Aspire, Dapr, Azure Service Bus, and ASP.NET Core Web API.
I have two services:
POC.AzServiceBus.SendMesssage which send a message to the Azure ...