Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Aspire Dapr Sample does not work (VS 2022 17.13.1). #700

Open
RudyCo opened this issue Feb 21, 2025 · 0 comments
Open

The Aspire Dapr Sample does not work (VS 2022 17.13.1). #700

RudyCo opened this issue Feb 21, 2025 · 0 comments

Comments

@RudyCo
Copy link

RudyCo commented Feb 21, 2025

Hello,
The Aspire Dapr Sample does not work (VS 2022 17.13.1).

Thanks in advance to have a look.

2025-02-21T01:12:24 fail: Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware[1]
2025-02-21T01:12:24       An unhandled exception has occurred while executing the request.
2025-02-21T01:12:24       Dapr.Client.InvocationException: An exception occurred while invoking method: 'weatherforecast' on app-id: 'api'
2025-02-21T01:12:24        ---> System.Net.Http.HttpRequestException: Response status code does not indicate success: 500 (Internal Server Error).
2025-02-21T01:12:24          at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
2025-02-21T01:12:24          at Dapr.Client.DaprClientGrpc.InvokeMethodAsync[TResponse](HttpRequestMessage request, CancellationToken cancellationToken)
2025-02-21T01:12:24          --- End of inner exception stack trace ---
2025-02-21T01:12:24          at Dapr.Client.DaprClientGrpc.InvokeMethodAsync[TResponse](HttpRequestMessage request, CancellationToken cancellationToken)
2025-02-21T01:12:24          at AspireWithDapr.Web.WeatherApiClient.GetWeatherAsync() in E:\source\repos\GitHub\dotnet\aspire-samples\samples\AspireWithDapr\AspireWithDapr.Web\WeatherApiClient.cs:line 9
2025-02-21T01:12:24          at AspireWithDapr.Web.Components.Pages.Weather.OnInitializedAsync() in E:\source\repos\GitHub\dotnet\aspire-samples\samples\AspireWithDapr\AspireWithDapr.Web\Components\Pages\Weather.razor:line 47
2025-02-21T01:12:24          at Microsoft.AspNetCore.Components.ComponentBase.RunInitAndSetParametersAsync()
2025-02-21T01:12:24          at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)
2025-02-21T01:12:24          at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)
2025-02-21T01:12:24          at Microsoft.AspNetCore.Components.RenderTree.Renderer.<WaitForQuiescence>g__ProcessAsynchronousWork|54_0()
2025-02-21T01:12:24          at Microsoft.AspNetCore.Components.RenderTree.Renderer.WaitForQuiescence()
2025-02-21T01:12:24          at Microsoft.AspNetCore.Components.RenderTree.Renderer.RenderRootComponentAsync(Int32 componentId, ParameterView initialParameters)
2025-02-21T01:12:24          at Microsoft.AspNetCore.Components.Endpoints.EndpointHtmlRenderer.SendStreamingUpdatesAsync(HttpContext httpContext, Task untilTaskCompleted, TextWriter writer)
2025-02-21T01:12:24          at Microsoft.AspNetCore.Components.Endpoints.EndpointHtmlRenderer.SendStreamingUpdatesAsync(HttpContext httpContext, Task untilTaskCompleted, TextWriter writer)
2025-02-21T01:12:24          at Microsoft.AspNetCore.Components.Endpoints.RazorComponentEndpointInvoker.RenderComponentCore(HttpContext context)
2025-02-21T01:12:24          at Microsoft.AspNetCore.Components.Endpoints.RazorComponentEndpointInvoker.RenderComponentCore(HttpContext context)
2025-02-21T01:12:24          at Microsoft.AspNetCore.Components.Rendering.RendererSynchronizationContext.<>c.<<InvokeAsync>b__10_0>d.MoveNext()
2025-02-21T01:12:24       --- End of stack trace from previous location ---
2025-02-21T01:12:24          at Microsoft.AspNetCore.OutputCaching.OutputCacheMiddleware.<>c__DisplayClass11_0.<<InvokeAwaited>g__ExecuteResponseAsync|0>d.MoveNext()
2025-02-21T01:12:24       --- End of stack trace from previous location ---
2025-02-21T01:12:24          at Microsoft.AspNetCore.OutputCaching.WorkDispatcher`2.ScheduleAsync(TKey key, Func`2 valueFactory)
2025-02-21T01:12:24          at Microsoft.AspNetCore.OutputCaching.OutputCacheMiddleware.InvokeAwaited(HttpContext httpContext, IReadOnlyList`1 policies)
2025-02-21T01:12:24          at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
2025-02-21T01:12:24          at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddlewareImpl.Invoke(HttpContext context)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant