I attempted to run my web service through visual studio. I faced an issue like :
---------------------------
Microsoft Visual Studio
---------------------------
In my case, doing the following did the trick:
When I restarted Visual Studio, it assigned the project a completely new port number and ran perfectly
I had the same problem but it resolved when I restarted using admin privileges. (Might have just been the restart)
I had the same Issue. As @Kautsky Lozano mentions above Another application is using that port.
So [for a Windows OS] just:
I just had this issue even though netstat did not show any conflicts.
The following fixed it for me:
I was able fix this problem by removing everything from <site>
to </site>
tags in
Users/<username>/Documents/IISExpress/config/applicatiohost.config
file
<sites>
<site>
.
. ===> remove this content including the <site> and </site> tags.
.
</site>
</sites>
Port numbers do not match
In my case the problem was in my Bindings Tags found in the config file in .vs under my solution folder, the port numbers did not match. The bindings were as follows
<bindings>
<binding protocol="http" bindingInformation=":16433:localhost" />
</bindings>
And in my settings i had url set as http://localhost:1943/
So what i did was to delete inside binding and run my web app, then it generated new binding with a different number then i copied the new generated port to my settings, then the error went away.