The Wayback Machine - https://web.archive.org/web/20210606185844/https://github.com/dotnet/aspnetcore/issues/33326
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

.net 6 Preview 4: Published WEB API not working when deploy to single file self contained #33326

Open
urza opened this issue Jun 6, 2021 · 0 comments

Comments

@urza
Copy link

@urza urza commented Jun 6, 2021

.net 6 Preview 4
Visual Studio 16.11.0 Preview 1.0

Create new asp.net core WEB API project with:

  • swagger enabled
  • not setup for https

Publish it with these options:

  • produce single file
  • Enable ReadyToRun
  • Trim unused assemblies

image

Run compiled .exe, it starts listening on localhost:5000
visit localhost:5000 in browser,
Expected: API working on localhost
Actual behaviour: 404 reposponse, the same for swagger docs index

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant