Click here to Skip to main content
15,913,027 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Im working in SilverLight with VB.NET .While running the code ,often service port number be changed. So im running the sevice.svc and AfterWards i have configured the service in the ServiceReferences.Is thers any way to fix the service port number not to any change
Posted

1 solution

I assume you mean the port number in a visual studio project. If so this is easy to fix (For VS2010, but 2008 is similar):

  1. Right-click the host project
  2. Select "Properties"
  3. Select the "Web Tab"
  4. The "Use Visual Studio Development Server" option will be selected, as will "Auto Assign Port" choose "Specific Port" instead


Note you will have to assign a different port for each host project you want to assign a specific port to as they all can't listen on the same one at the same time (though the port will stay the same for the project as you wanted in your question). Also, these settings will be different to live so bear that in mind when you use it there :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900