|
-
Jul 31st, 2006, 12:58 PM
#1
Thread Starter
Lively Member
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?
-
Jul 31st, 2006, 02:40 PM
#2
Retired VBF Adm1nistrator
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]
-
Aug 1st, 2006, 04:37 AM
#3
Fanatic Member
Re: How to open asp.net websites in IE directly?
 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 
-
Aug 1st, 2006, 09:47 AM
#4
Thread Starter
Lively Member
Re: How to open asp.net websites in IE directly?
 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.
-
Aug 1st, 2006, 09:53 AM
#5
Thread Starter
Lively Member
Re: How to open asp.net websites in IE directly?
 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.
-
Aug 1st, 2006, 09:55 AM
#6
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.
-
Aug 1st, 2006, 09:59 AM
#7
-
Aug 1st, 2006, 11:02 AM
#8
Thread Starter
Lively Member
Re: How to open asp.net websites in IE directly?
 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
-
Aug 1st, 2006, 11:03 AM
#9
Thread Starter
Lively Member
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 "
-
Aug 1st, 2006, 11:56 AM
#10
Re: How to open asp.net websites in IE directly?
-
Aug 3rd, 2006, 05:01 AM
#11
Thread Starter
Lively Member
Re: How to open asp.net websites in IE directly?
Thanks for the link!
-
Aug 3rd, 2006, 05:36 AM
#12
Fanatic Member
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 
-
Aug 3rd, 2006, 05:40 AM
#13
-
Aug 4th, 2006, 05:45 AM
#14
Fanatic Member
Re: How to open asp.net websites in IE directly?
 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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|