400 bad request when accessing ASP.net web api through computer name on IISExpress

I get an error with 400 error while accessing the ASP.net website through a URL that uses the computer name. When I use localhost, it works fine. I am using iisExpress for visual studio 2012.

Any help is appreciated! Thanks in advance!

+6
source share
2 answers

I found the answer to this from another post here. I had to update the IISExpress applicationhost.config file and add the binding with my computer name on it.

A link to another post is here: Configuring IIS Express for External Access to the VS2010 Project

+6
source

If you prefer not to change the configuration, you can use our free VS extension called Conveyor

https://marketplace.visualstudio.com/items?itemName=vs-publisher-1448185.ConveyorbyKeyoti

0
source

Source: https://habr.com/ru/post/947783/


All Articles