I just finished adding C# Web API components (Web API Models & Controllers) to a localhost
copy of an existing project.
This Web API\'s GET-methods shou
If you are using Visual Studio's built in web server (IIS Express), localhost is mapped by default; to enable 127.0.0.1:
1) At path: %USERPROFILE%\Documents\IISExpress\config
2) Locate config file: applicationhost.config
3) - open config file in editor (I use notepad++)
4) Search for the site port, for example if the url is typically localhost:57578, search "57578" and you should find:
5) Change this entry to:
6) Save and exit, restart website.
Note: You will want to repeat this process any time you create a new virtual directory (changing the port number Project/Properties/Web/Project Url), which creates a new entry in the applicationhost.config file.