marsh-wiggle
marsh-wiggle

Reputation: 2803

Where can I change the port of a Web Site Project (WCF) in Visual Studio 2013?

For Web Site Projects in Visual Studio 2010 the port could be changed in the properties after setting use dynamic ports to false. This option not present in Visual Studio 2013. Can the port there only be changed directly in the SLN file?

Upvotes: 1

Views: 880

Answers (2)

Piero Alberto
Piero Alberto

Reputation: 3943

The solution worked for me is:

Web.config of the website:

endpoint address="http://....."

csproj File of the project (or vbproj):

<DevelopmentServerPort>56179</DevelopmentServerPort> 
<IISUrl>localhost:56179/</IISUrl>

Editing these parameters make you able to change the port as you want.

Upvotes: 1

marsh-wiggle
marsh-wiggle

Reputation: 2803

it is as suspected. The ports have to be changed in the SLN file and the URL in the web.config

SLN File of the solution:

VWDPort = "xxx"

Web.config of the website:

endpoint address="http://....."

Upvotes: 0

Related Questions