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

API stop working in ASP core 6 after adding new ConsumesAttribute("application/json") angular project #42462

Open
1 task done
tnlthanzeel opened this issue Jun 28, 2022 · 2 comments
Labels
area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates feature-routing
Milestone

Comments

@tnlthanzeel
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

i migrated a project to asp core 6. the project is an API project where it serves angular as front end. after the migration the APIs stopped working for one single line of code

image

so if i comment this line of code and re-run the project the API works. i have no idea

here is the link to the minimal repro - https://github.com/tnlthanzeel/VPMS-POC

Expected Behavior

APi should work as normal

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version

asp core 6

Anything else?

No response

@javiercn
Copy link
Member

@tnlthanzeel thanks for contacting us.

This is likely a dupe of #41060 or caused by the same reason.

@javiercn javiercn added feature-routing area-web-frameworks *DEPRECATED* This label is deprecated in favor of the area-mvc and area-minimal labels labels Jun 28, 2022
@tnlthanzeel
Copy link
Author

I found that if i comment the app.MapFallBackToFile() in the Program.cs then the Api works. But i have no idea why @javiercn

@rafikiassumani-msft rafikiassumani-msft added this to the .NET 8 Planning milestone Jul 12, 2022
@captainsafia captainsafia added area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates and removed area-web-frameworks *DEPRECATED* This label is deprecated in favor of the area-mvc and area-minimal labels labels Jun 20, 2023
@captainsafia captainsafia modified the milestones: .NET 8 Planning, Backlog Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates feature-routing
Projects
No open projects
Status: No status
Development

No branches or pull requests

4 participants