locked
How does localhost get its ID number in asp.net? RRS feed

  • Question

  • How does localhost get its ID number in asp.net?

    I have a question about ASP.NET and running test web sites locally.
    I have written two asp.net web sites for testing purposes. One works and the other one fails.  The one that fails does not give any useful diagnostic information.

    Can you tell me how these id’s are generated that are alongside the localhost: url?

    • Moved by Jason Dot Wang Thursday, July 25, 2013 6:17 AM This thread is about ASP.NET
    Tuesday, July 16, 2013 5:20 PM

Answers

  • That is not an ID, that is a Port Number. Looks like you are still debugging on Localhost, so no fixed Port is needed. Hence they are pretty much randonly selected from an area 1024 too 65536 every time the server starts.


    Let's talk about MVVM: http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/b1a8bf14-4acd-4d77-9df8-bdb95b02dbe2 Please mark post as helpfull and answers respectively.

    • Proposed as answer by Just Karl Tuesday, July 16, 2013 6:57 PM
    • Marked as answer by Just Karl Friday, September 20, 2013 8:28 PM
    Tuesday, July 16, 2013 5:49 PM

All replies

  • You should ask in the ASP.net forums. If this is specifically a C# ASP question, ask in their C# forum.

    Karl


    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer



    My Blog: http://unlockpowershell.wordpress.com
    My Book: Windows PowerShell 2.0 Bible
    My E-mail: -join ("6B61726C6D69747363686B65406D742E6E6574"-split"(?<=\G.{2})",19|%{[char][int]"0x$_"})

    Tuesday, July 16, 2013 5:26 PM
  • That is not an ID, that is a Port Number. Looks like you are still debugging on Localhost, so no fixed Port is needed. Hence they are pretty much randonly selected from an area 1024 too 65536 every time the server starts.


    Let's talk about MVVM: http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/b1a8bf14-4acd-4d77-9df8-bdb95b02dbe2 Please mark post as helpfull and answers respectively.

    • Proposed as answer by Just Karl Tuesday, July 16, 2013 6:57 PM
    • Marked as answer by Just Karl Friday, September 20, 2013 8:28 PM
    Tuesday, July 16, 2013 5:49 PM
  • Hi,

      Welcome to MSDN Forum Support.

      You are more likely to get more efficient responses to ASP.NET issues at http://forums.asp.net where you can contact ASP.NET experts.

      Sincerely,

      Jason Wang


    Jason Wang
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Thursday, July 25, 2013 6:17 AM