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?
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
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 :thumb:
(to select IE open your aspx file in the IDE. In the File menu select "Browse With..." and select "Microsoft Internet Explorer")
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.
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 :thumb:
(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.
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.
Re: How to open asp.net websites in IE directly?
Perhaps my description was a little too complicated? Sorry if it was :thumb:
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 :thumb:
Heh. Its ok, I understand it. All replies are appreaciated :)
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 "
Re: How to open asp.net websites in IE directly?
Re: How to open asp.net websites in IE directly?
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)
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 :thumb:
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 :thumb: