C
C#7d ago
Zess

An unhandled exception of type 'System.AggregateException' occurred in System.Private.CoreLib.dll: '

Exception has occurred: CLR/System.AggregateException
An unhandled exception of type 'System.AggregateException' occurred in System.Private.CoreLib.dll: 'One or more errors occurred.'
Inner exceptions found, see $exception in variables window for more details.
Innermost exception System.IO.IOException : Received an unexpected EOF or 0 bytes from the transport stream.
at System.Net.Security.SslStream.<ReceiveHandshakeFrameAsync>d__151`1.MoveNext()
at System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable`1.ConfiguredValueTaskAwaiter.GetResult()
at System.Net.Security.SslStream.<ForceAuthenticationAsync>d__150`1.MoveNext()
at System.Net.Http.ConnectHelper.<EstablishSslConnectionAsync>d__2.MoveNext()
Exception has occurred: CLR/System.AggregateException
An unhandled exception of type 'System.AggregateException' occurred in System.Private.CoreLib.dll: 'One or more errors occurred.'
Inner exceptions found, see $exception in variables window for more details.
Innermost exception System.IO.IOException : Received an unexpected EOF or 0 bytes from the transport stream.
at System.Net.Security.SslStream.<ReceiveHandshakeFrameAsync>d__151`1.MoveNext()
at System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable`1.ConfiguredValueTaskAwaiter.GetResult()
at System.Net.Security.SslStream.<ForceAuthenticationAsync>d__150`1.MoveNext()
at System.Net.Http.ConnectHelper.<EstablishSslConnectionAsync>d__2.MoveNext()
IDK why my aspire project is not running but the other two (webapp api + blazor ) projects are working fine.
No description
34 Replies
Unknown User
Unknown User7d ago
Message Not Public
Sign In & Join Server To View
Zess
ZessOP7d ago
My debug console
Unknown User
Unknown User7d ago
Message Not Public
Sign In & Join Server To View
Zess
ZessOP7d ago
ok
Unknown User
Unknown User7d ago
Message Not Public
Sign In & Join Server To View
Zess
ZessOP7d ago
using Microsoft.Extensions.DependencyInjection;

var builder = DistributedApplication.CreateBuilder(args);

var apiService = builder.AddProject<Projects.QuizApp_ApiService>("apiservice");

builder.AddProject<Projects.QuizApp_Web>("webfrontend")
.WithExternalHttpEndpoints()
.WithReference(apiService)
.WaitFor(apiService);

builder.Build().Run();
using Microsoft.Extensions.DependencyInjection;

var builder = DistributedApplication.CreateBuilder(args);

var apiService = builder.AddProject<Projects.QuizApp_ApiService>("apiservice");

builder.AddProject<Projects.QuizApp_Web>("webfrontend")
.WithExternalHttpEndpoints()
.WithReference(apiService)
.WaitFor(apiService);

builder.Build().Run();
this is my program.cs and im on linux it works fine in vs
Unknown User
Unknown User7d ago
Message Not Public
Sign In & Join Server To View
Zess
ZessOP7d ago
yes
Unknown User
Unknown User7d ago
Message Not Public
Sign In & Join Server To View
Zess
ZessOP7d ago
GitHub
GitHub - zanibul-shanto/QuizApp
Contribute to zanibul-shanto/QuizApp development by creating an account on GitHub.
Zess
ZessOP7d ago
dev certificate is on
Unknown User
Unknown User7d ago
Message Not Public
Sign In & Join Server To View
Zess
ZessOP7d ago
No description
Zess
ZessOP7d ago
same
Unknown User
Unknown User7d ago
Message Not Public
Sign In & Join Server To View
Zess
ZessOP7d ago
then everything is fine they're running
Unknown User
Unknown User7d ago
Message Not Public
Sign In & Join Server To View
Zess
ZessOP7d ago
what is the actual port? Im confused
Unknown User
Unknown User7d ago
Message Not Public
Sign In & Join Server To View
Zess
ZessOP7d ago
I cant run the aspire
Unknown User
Unknown User7d ago
Message Not Public
Sign In & Join Server To View
Zess
ZessOP7d ago
I just run and got the error and nothing
Unknown User
Unknown User7d ago
Message Not Public
Sign In & Join Server To View
Zess
ZessOP7d ago
i mean i just run the project and got the error
Unknown User
Unknown User7d ago
Message Not Public
Sign In & Join Server To View
Zess
ZessOP7d ago
in this sln there aree 3 project. webapi, aspire, razor. only when I run aspire, im getting this error
Unknown User
Unknown User7d ago
Message Not Public
Sign In & Join Server To View
Zess
ZessOP7d ago
running
Unknown User
Unknown User7d ago
Message Not Public
Sign In & Join Server To View
Zess
ZessOP7d ago
Oh one more thing i did not install aspire so there is no version avaiable in my machine
Unknown User
Unknown User7d ago
Message Not Public
Sign In & Join Server To View
Zess
ZessOP7d ago
IK, I just keep those as my notes
Unknown User
Unknown User7d ago
Message Not Public
Sign In & Join Server To View
Zess
ZessOP7d ago
I download the Aspire and it works. Thanks man ❤️ @TeBeCo

Did you find this page helpful?