Click here to Skip to main content
15,881,455 members
Please Sign up or sign in to vote.
1.80/5 (3 votes)
See more:
We had created a web api in c# and we have done everything to publish it in IIS, we have done everything videos said, manuals, etc and we still have the 400 error.

We use the simple example of the wheather api and nothing.
If we run the web api from vstudio 2022 runs fine.

We use the local IIS to see if it is something with the firewall and we have the same error.

Steps.
1. Download the windows hosting bundle
2. Run donet publish --self-contained -c Release -r wind-x64
or 3. Use the publish method on visual studio 2022

What I have tried:

Problem publish web api in IIS(both in local PC and the server) using visual 2022
Posted
Comments
Laiju k 22-Nov-22 0:22am    
Did you have the site working or you cant get anything working.

Only getting 400 error

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900