[AspireE2E] After opening the URL of the resource 'api-tunnel-webfrontend-http', the page cannot be found.
- Dominant language
- C#
- Stars
- 6.3k
- Forks
- 991
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 196
Description
**REGRESSION INFO**: Repro on Aspire.ProjectTemplates 13.0.2
**INSTALL STEPS**
1. Clean machine: Windows x64 23h2
2. Install VS 18.3 Insiders
3. Install Aspire.ProjectTemplates 13.1.0
4. Install the devtunnel CLI tool
`winget install Microsoft.devtunnel`
**REPRO STEPS**
1. Open VS > File > New project> Aspire Starter App(ASP.NET Core/Blazor)
2. Right click the AppHost project > Add > Aspire package > Install Aspire.Hosting.DevTunnels
3. Open AppHost.cs file, replace with the following code:
```
var builder = DistributedApplication.CreateBuilder(args);
var apiService = builder.AddProject("apiservice")
.WithHttpHealthCheck("/health");
var webapp = builder.AddProject("webfrontend")
.WithExternalHttpEndpoints()
.WithHttpHealthCheck("/health")
.WithReference(apiService)
.WaitFor(apiService);
var tunnel = builder.AddDevTunnel("api-tunnel")
.WithReference(webapp.GetEndpoint("http"));
builder.Build().Run();
```
4. Build and F5 using https
**NOTE**:
1. This issue is not reproduced when the code `.GetEndpoint("http")` in step 3 of REPRO STEPS is removed
2. This issue is not reproduced when running this project using http.
3. When the code of the third step `.withreference (webapp.GetEndpoint("http"))` is changed to `.withreference (apiService.GetEndpoint("http"))`, this issue does not repro.
**ACTUAL**
After opening the URL of the resource 'api-tunnel-webfrontend-http', the page cannot be found.
**EXPECTED**
The page can be opened successfully.
Contributor guide
Assessment
This issue has not been assessed yet.