Results 1 to 14 of 14

Thread: How to open asp.net websites in IE directly?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2006
    Posts
    108

    Red face How to open asp.net websites in IE directly?

    Hi,

    I have developed an asp.net website using vstudio 2005. But in order for the website to run properly, I have to run it from visual studio itself.

    When I typed the webaddress directly into the web browser's address bar (http://localhost/User.aspx), the website is unable to work correctly.

    What should I do to enable the user to access the asp.net website directly via a browser without the need for visual studio?

  2. #2
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359

    Re: How to open asp.net websites in IE directly?

    Where did you create the web project? The easiest would be to probably use the Publish feature and plonk the required parts of the project onto a webserver automatically
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  3. #3
    Fanatic Member Valleysboy1978's Avatar
    Join Date
    Nov 2004
    Location
    Planet Xeoroaniar CC Posts:1,928,453,459,361
    Posts
    770

    Re: How to open asp.net websites in IE directly?

    Quote Originally Posted by LiLo
    Hi,

    I have developed an asp.net website using vstudio 2005. But in order for the website to run properly, I have to run it from visual studio itself.

    When I typed the webaddress directly into the web browser's address bar (http://localhost/User.aspx), the website is unable to work correctly.

    What should I do to enable the user to access the asp.net website directly via a browser without the need for visual studio?
    You might need to put the directory name in too: http://localhost/Dir1/User.aspx

    I've also found that the port number is sometimes needed as VS2005 uses an ASP.NET Development Server with varying port numbers.
    All you need to do is run the project using Visual Studio (ensure it launces IE separately) and the address is in the address bar

    (to select IE open your aspx file in the IDE. In the File menu select "Browse With..." and select "Microsoft Internet Explorer")
    Life is one big rock tune

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Mar 2006
    Posts
    108

    Re: How to open asp.net websites in IE directly?

    Quote Originally Posted by plenderj
    Where did you create the web project? The easiest would be to probably use the Publish feature and plonk the required parts of the project onto a webserver automatically
    I used VStudio 2005 and created the web project on the local file system. I placed the project in a folder inside the "My Documents" folder.

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Mar 2006
    Posts
    108

    Re: How to open asp.net websites in IE directly?

    Quote Originally Posted by Valleysboy1978
    You might need to put the directory name in too: http://localhost/Dir1/User.aspx

    I've also found that the port number is sometimes needed as VS2005 uses an ASP.NET Development Server with varying port numbers.
    All you need to do is run the project using Visual Studio (ensure it launces IE separately) and the address is in the address bar

    (to select IE open your aspx file in the IDE. In the File menu select "Browse With..." and select "Microsoft Internet Explorer")
    Hmm.....ya, dats wat I do normally. But now, I would like to just open the website from IE directly, not via Visual Studio. I'll check out if I've missed typing the directory name wrongly.

  6. #6
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: How to open asp.net websites in IE directly?

    When you run it from Visual Studio, look in the address bar. There will be a URL there. That is the URL you should be using to get to your pages. You can copy and paste it into another browser window and if possible, memorize it.

  7. #7
    Fanatic Member Valleysboy1978's Avatar
    Join Date
    Nov 2004
    Location
    Planet Xeoroaniar CC Posts:1,928,453,459,361
    Posts
    770

    Re: How to open asp.net websites in IE directly?

    Perhaps my description was a little too complicated? Sorry if it was
    Life is one big rock tune

  8. #8

    Thread Starter
    Lively Member
    Join Date
    Mar 2006
    Posts
    108

    Re: How to open asp.net websites in IE directly?

    Quote Originally Posted by Valleysboy1978
    Perhaps my description was a little too complicated? Sorry if it was
    Heh. Its ok, I understand it. All replies are appreaciated

  9. #9

    Thread Starter
    Lively Member
    Join Date
    Mar 2006
    Posts
    108

    Re: How to open asp.net websites in IE directly?

    Hi all,

    I have tried the walkthrough given in msdn. I followed the steps given.

    First I used the publishing tool from vstudio. I published the files onto a folder at C:\CompiledSite. Then I created a virtual folder in IIS which points to the CompiledSite folder. File sharing is enabled. I also changed the ASP.Net version in IIS to version 2.0

    So far, all is ok. But when I typed the address into the address bar (http://localhost/CompiledSite/Login.aspx), an error message appeared.

    Server Application Unavailable
    The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request.


    What causes this error message to appear? For the web address, I followed the format given by the msdn walkthrough. That is "http://localhost/CompiledSite/filename.aspx "

  10. #10
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: How to open asp.net websites in IE directly?


  11. #11

    Thread Starter
    Lively Member
    Join Date
    Mar 2006
    Posts
    108

    Re: How to open asp.net websites in IE directly?

    Thanks for the link!

  12. #12
    Fanatic Member Valleysboy1978's Avatar
    Join Date
    Nov 2004
    Location
    Planet Xeoroaniar CC Posts:1,928,453,459,361
    Posts
    770

    Re: How to open asp.net websites in IE directly?

    Did it work?
    (Also, try putting the port number in the address as VS2005 needs a port number)
    Life is one big rock tune

  13. #13
    Fanatic Member Valleysboy1978's Avatar
    Join Date
    Nov 2004
    Location
    Planet Xeoroaniar CC Posts:1,928,453,459,361
    Posts
    770

    Re: How to open asp.net websites in IE directly?

    One thing new in 2005 is the ASP.NET Development Server. This runs whenever you debug a website, but it DOESN'T stop when you close debugging and return to the IDE. Ensure this is still running (it is in your system tray and looks like a pale-yellow page icon with a globe on the page and bottom left of the page). Hover over your mouse and it will say:

    ASP.NET Development Server - Port 1439
    (Note port number changes regularly)

    In this case, if the Development server is still running, just type this into the IE address bar:
    http://localhost:1439/CompiledSite/Login.aspx

    Good luck
    Life is one big rock tune

  14. #14
    Fanatic Member Valleysboy1978's Avatar
    Join Date
    Nov 2004
    Location
    Planet Xeoroaniar CC Posts:1,928,453,459,361
    Posts
    770

    Re: How to open asp.net websites in IE directly?

    Quote Originally Posted by LiLo
    I have tried the walkthrough given in msdn. I followed the steps given.
    Could you provide the link as this could come in handy for future reference
    Life is one big rock tune

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width