Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

400 bad request when access ASP.net web api via computer name on IISExpress

I'm getting a 400 bad request error message when accessing an ASP.net web api via a url that uses the computer name. When I use localhost it works fine. I'm using the iisExpress for visual studio 2012.

Any help is appreciated! Thanks in advance!

like image 325
ptn77 Avatar asked Jun 20 '13 20:06

ptn77


1 Answers

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

The link to the other post is here: Configure IIS Express for external access to VS2010 project

like image 100
ptn77 Avatar answered Nov 15 '22 06:11

ptn77