visual studio 2008 - Debugging VS2008 project with url other than localhost -


in host file have provided option 127.0.0.1 localhost mysite.com can access localhost site custom name (i can access site directly via typing http://mysite.com/ in browser). issue comes how do same vs2008. want debug application url in browser http://mysite.com/ . tried putting "http://mysite.com/ " in use local iis web server option textbox of webproject properties build option can't run project that. compulsory have enter localhost url in textbox. can me in fixing above issue?

edit file hosts on c:\windows\system32\drivers\etc.

like this...

# copyright (c) 1993-2009 microsoft corp. # # sample hosts file used microsoft tcp/ip windows. # # file contains mappings of ip addresses host names. each # entry should kept on individual line. ip address should # placed in first column followed corresponding host name. # ip address , host name should separated @ least 1 # space. # # additionally, comments (such these) may inserted on individual # lines or following machine name denoted '#' symbol. # # example: # #      102.54.94.97     rhino.acme.com          # source server #       38.25.63.10     x.acme.com              # x client host # localhost name resolution handled within dns itself. #   127.0.0.1       localhost #   ::1             localhost     127.0.0.1       my.domain.com 

now, on browser, call http://my.domain.com/application

hope helps.


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -