Click to See Complete Forum and Search --> : How to open asp.net websites in IE directly?


ZhiYi
July 31st, 2006, 01:55 PM
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?

creatorul
July 31st, 2006, 02:44 PM
You have to start IIS from Control Panel , Administrative Tools , Internet Information Services . Then you have to configure your website. If you do not have IIS installed you go to Control Panel , Add or remove programs , Add /Remove Windows Components tab and select IIS. You will find enough informations how to configure IIS if search on google.

boudino
August 1st, 2006, 02:55 AM
When you have IIS installed, there is easier way: in Windows Explorer (or other shell) navigate to folder in which your web application is, open properties of the folder and on allow sharing on Web Sharing tab (then go to IIS console and check if application is created for the folder).

Note, that if you run (debug) the application from VS, the IDE choose itself if it launches build-in web server or use IIS. The decision is based on way how you have add the web application to solution - if you added it as disk path, the build-in server is used, if you added as (existing) web project, IIS it used.

ZhiYi
August 1st, 2006, 10:42 AM
Thanks! I'll go n try it out :o

ZhiYi
August 1st, 2006, 11:07 AM
When you have IIS installed, there is easier way: in Windows Explorer (or other shell) navigate to folder in which your web application is, open properties of the folder and on allow sharing on Web Sharing tab (then go to IIS console and check if application is created for the folder).

Note, that if you run (debug) the application from VS, the IDE choose itself if it launches build-in web server or use IIS. The decision is based on way how you have add the web application to solution - if you added it as disk path, the build-in server is used, if you added as (existing) web project, IIS it used.

About the folder where the web application is, is it the folder which stores the .sln solution file or is it the folder where the asp.net webpages and other files are stored?

jasonli
August 1st, 2006, 11:36 AM
Of course it is the folder where the asp.net webpages and other files are stored.

ZhiYi
August 1st, 2006, 11:57 AM
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 address, I used the format given in the msdn walkthrough which is "http://localhost/CompiledSite/filename.aspx"

jasonli
August 1st, 2006, 12:42 PM
that's because you should set access right of the folder "CompiledSite" to ASP.NET (NETWORK SERVICE for Windows2003).