Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - My First ASP Page Not Working!
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

My First ASP Page Not Working!

 Post Reply Post Reply Page  <123>
Author
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 07 September 2009 at 1:50pm
The first thing to check is that it is a 404 page not found error and not a 500 internal server error.

If it is a 500 internal server error you need to turn off friendly HTTP errors in IE so you can see the real error.

If it is a 404 page not found error make sure the path to the file is correct.
Back to Top
san1965 View Drop Down
Newbie
Newbie


Joined: 04 September 2009
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote san1965 Quote  Post ReplyReply Direct Link To This Post Posted: 07 September 2009 at 1:58pm

Hello WebWiz-Bruce,

Thank you for your message.
 
IE returns the 404 page "The Page cannot be found". I also unchecked the "Show friendly HTTP error messages" in the Advance tab of "Internet Options". Still the same result.
 
I am wondering: I have Visual studio.net installed on the machine. Have never used it as yet, though. Would the presence of this software have any influence on ASP program's behavior?
 
Thanks in advance...

 

 

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 07 September 2009 at 2:19pm
It may do as it may change the path to the IIS default website.

Have a look at the default websites properties in IIS and see what the path is. It should be C:\InetPub\wwwroot, but this may have been changed by Visual Studio, in which case you would need to move your MyFirstASP.asp to this new location.

Edited by WebWiz-Bruce - 07 September 2009 at 2:28pm
Back to Top
san1965 View Drop Down
Newbie
Newbie


Joined: 04 September 2009
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote san1965 Quote  Post ReplyReply Direct Link To This Post Posted: 07 September 2009 at 2:29pm

Hello WebWiz-Bruce,

Thank you for your message.

In the default website properties of IIS, the "Home Directory" tab has the following information:

Local Path: c:\Inetpub\wwwroot

Read, Log visits, Index this resource checked.

In "Application Settings" in this same tab:

Application Name: Default Application

Starting Point: <Default Website>

Execute Permissions: Scripts Only

Application Protection: Medium (Pooled)

In the "Web Site" tab:

IP Address: (All Unassigned)

TCP Port: 80

Connection Timeout: 900 seconds

HTTP Keep-Alives Enabled is checked

Enable Logging is checked

Active Log Format is W3C Extended Log File Format.

There is one tab for ASP.NET also...

 

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 07 September 2009 at 2:29pm
I have just remembered that Visual Studio installs it's own web server, which may stop IIS from working correctly
Back to Top
san1965 View Drop Down
Newbie
Newbie


Joined: 04 September 2009
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote san1965 Quote  Post ReplyReply Direct Link To This Post Posted: 07 September 2009 at 2:43pm
Hi,
It is working!
The only change I made, while noting down the contents of the tabs in order to write them here, was to change the value of "Description" field in the "Web Site Identification" box of the "Web Site" tab to something meaningful.
Now, to see if this small content change really made any difference, I have gone back and deleted the string I had inserted earlier, clicked Apply and OK, and ran the program again. It is still working!
Perhaps, the only justification for this error is that the "Web Site" description has to be given some value, even it is blank, for the ASP to work. May be the tutorial for installing the IIS needs to be updated to incorporate this small point?
Thank you everyone for sparing your time to resolve this problem.

 

One corollary to this issue is: If my .asp file is located in some other folder on some other partition, can I still run it? In the IIS snap-in, I had created a new "virtual directory" by right-clicking on the website that appears below the "Web Sites" folder in the inverted tree. I have a .asp file located in this virtual directory, which is essentially a folder on a separate partition. In the URL field of the browser, what address do I give to run this file?

Thanks in advance...
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 07 September 2009 at 2:50pm
I very much doubt changing the description made it work, however as Visual Studio installs it's own web server it more than likely disabled the IIS default website, by changing it's properties re enabled the IIS default website.

I would suggest that you do a bit of reseach on Google to findout how you can have the Visual Studio web server and IIS working side by side, or disable the one in Visual Studio to prevent an further issues.

Your other questions, yes you can crate virtual directories in IIS to run ASP websites. The path would be http://localhost/virtual_directory_name


Back to Top
san1965 View Drop Down
Newbie
Newbie


Joined: 04 September 2009
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote san1965 Quote  Post ReplyReply Direct Link To This Post Posted: 07 September 2009 at 3:02pm

Hello WebWiz-Bruce,

Thank you for your message.

What you are saying makes sense. Changing one of the properties of the website and clicking on Apply must have nudged ASP.NET to release its hold over the IIS' set of websites.

Your input on using the virtual directory name in the URL path has worked too, thanks! Much appreciated!

Would like to know if there is any URL where the internals of IIS - such as the meanings of the individual items in the "Website properties", that of the individual entries that come up when the IIS service name in the inverted tree, etc. - are described in detail? This perhaps is the right time to come to grips with the subject.

Thank you once again...

 

Back to Top
 Post Reply Post Reply Page  <123>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.