Web Application Port Issue

Last post 06-12-2008 8:53 AM by ganesansankar. 8 replies.

Sort Posts:

  • Web Application Port Issue

    04-29-2006, 4:14 AM

    Hi,

    We have been using file system based web projects for web services which had seemingly been working fine, however we added the "Update to support web applications" and we have started getting a problem.

    In a nut shell each time a developer opens visual studio it seems to reassign the port numbers for web projects, as result they have to change web service url's in the configuration.  This is a big pain in the ass as multiple developers working on the same solution means we each have to share checkout the config files so we can change the settings to suit our Visual Studio.

    I cant see how to configure or set what port a web application will use, and havent been able to find much on google about this.

    Would like to know if anyone else has had the same issue and if they could fix or work around it. 

    Cheers for any help

    Mike

  • Re: Web Application Port Issue

    04-29-2006, 2:48 PM

    Hi Mike,

    This will help. If you want to specify the port your application will use, do the following

    • Select the application in the Solution Explorer
    • Then in the properties window you should see a Use dynamic ports item. Set that to false and then you will be able to set the Port number property.

    That should do it. Let me know how you make out.

    James Steele

  • Re: Web Application Port Issue

    05-02-2006, 2:19 AM

    Hi James,

    Thanks for that but unfortunately when you tell it to use a fixed port number, the next time you open the solution in Visual Studio it has reset these to auto assign the port.

    Appreciate any other suggestions

    Mike

  • Re: Web Application Port Issue

    05-03-2006, 12:48 AM
    Hi Mike,

    Are you sure the settings are getting saved in your solution file? Open the .sln in notepad and look for the following two entries:

            VWDPort = "3000"
            VWDDynamicPort = "false"

    These should be set to whatever you specified and should not get changed.

    James Steele
  • Re: Web Application Port Issue

    05-03-2006, 4:55 AM
    • Loading...
    • spacelord
    • Joined on 05-03-2006, 8:37 AM
    • Nyköping, Sweden
    • Posts 2

    Hi,

    storing the port settings in the solution file creates a problem for us because we are using a single development server for multilple developers.

    If we use dynamic ports, every time when a developer starts a debug session i VS and the port is busy becuase another developer is also debugging a new port will be assigned and the solution-file will be updated. When the solution-file is updated it will also be checked out from VSS. Then when you check in the solution-file and the other developer gets the latest version from VSS the scenario will repeat for him and me and him and me........

    What would have been preferred is to keep the port settings in the sou-file instead as it is actually only important for the developer and not the solution.

  • Re: Web Application Port Issue

    05-07-2006, 4:51 PM

    Hi James,

    Sorry for being a bit slow in repling here, have been working away a bit.

    I have checked the solution and project files and they dont have a record for the two things you mention in them

  • Re: Web Application Port Issue

    02-15-2008, 10:06 AM

     

    Hi Michael;

    I am up with the same problem...do you have a solution for it???

  • Re: Web Application Port Issue

    02-20-2008, 3:48 AM
    • Loading...
    • spacelord
    • Joined on 05-03-2006, 8:37 AM
    • Nyköping, Sweden
    • Posts 2

    Hi,

    in VS 2008 this is fixed as you decide if you want these settings in either the project or user file. There is also a hotfix for VS 2005 available for this problem as well.

    See this page http://blogs.msdn.com/webdevtools/archive/2008/01/17/tips-tricks-web-server-settings-for-web-application-projects-now-can-be-stored-per-user-as-well-as-per-project.aspx

  • Re: Web Application Port Issue

    06-12-2008, 8:53 AM

    Hi James Steele

    Thanks for your guide,

    It's resolved my issue..

    I'll descibe it here how i resolved my issue.

    Just i open the solution file in the Notepad then found the entry

      VWDPort = "3000"
    then i added the below entry as per your instruction, save and close that file,

      VWDDynamicPort = "false"

    After that start running the application it's started to work. This is the way i resolved my issue.

    Thanks James Steele.

     

    Regards
    Ganesan S
    "Hard Work Never Fails"

    Please "Mark as Answered" if helpful for you.
Page 1 of 1 (9 items)
Microsoft Communities
Page view counter