Bad Request - Invalid Hostname with Asp.net WebAPI project in Visual Studio 2013

后端 未结 4 532
甜味超标
甜味超标 2020-12-25 14:11

I am running a very basic webAPI project in Visual Studio Pro 2013. It runs fine on localhost on my machine. I then try and go to a browser from a different machine and goto

4条回答
  •  长发绾君心
    2020-12-25 14:52

    I can not comment, but wanted to answer @EthanKeiser

    Visual Studio 2015 has a separate config file for each Solution that you will need to update per the accepted answer. This file is located at:

    C:\Users\\{UserName}\Documents\Visual Studio 2015\Projects\\{SolutionName}\\.vs\config\applicationhost.config
    

提交回复
热议问题