Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8
This is the forum to discuss the Wrox book Beginning ASP.NET 2.0 by Chris Hart, John Kauffman, David Sussman, Chris Ullman; ISBN: 9780764588501
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 10th, 2006, 06:35 PM
Authorized User
 
Join Date: Aug 2006
Location: , , .
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default The page cannot be found

I have:
1. Windows Server 2003 standard edition
2. IIS 6.0
3. VWD 2005 Express
4. Virtual Directory – ASP.NET version as been set to 2.0.50727
5. Added Default.aspx to the documents page
6. IE address line http://localhost/WroxUnited - And this error is produced “The page cannot be found”

I have tried installing on a clean system with VS 2005 with SQL 2005 still the same error.

I am frustrated and am about to ask for my money back. I have wasted a hold day trying to get this to work. Not a happy camper

Can any one help me for I would like to start my learning of ASP


  #2 (permalink)  
Old August 11th, 2006, 01:21 AM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

This sounds like a configuration error with your system, not with the book....

http://imar.spaanjaars.com/QuickDocId.aspx?quickdoc=254

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
  #3 (permalink)  
Old August 11th, 2006, 11:48 AM
Authorized User
 
Join Date: Aug 2006
Location: , , .
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have looked at your link and I have the appropriate setting already allowed and I am still getting this.

The page cannot be found
The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.
Please try the following:
• If you typed the page address in the Address bar, make sure that it is spelled correctly.
• Open the localhost home page, and then look for links to the information you want.
• Click the Back button to try another link.
• Click Search to look for information on the Internet.

HTTP 400 - Bad Request
Internet Explorer


  #4 (permalink)  
Old August 11th, 2006, 12:01 PM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Hmmm, pity. In that case, I don't what's causing this issue.

Have you seen this thread:

http://p2p.wrox.com/topic.asp?TOPIC_ID=40801

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
  #5 (permalink)  
Old August 11th, 2006, 01:55 PM
Authorized User
 
Join Date: Aug 2006
Location: , , .
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I ran C:\%WINDIR%\Microsoft.NET\Framework\v2.0.50727 (through windows command) and type aspnet_regiis /i

Rebooted

Ran IE with http://localhost/WroxUnited

You are not authorized to view this page
You might not have permission to view this directory or page using the credentials you supplied.

--------------------------------------------------------------------------------

If you believe you should be able to view this directory or page, please try to contact the Web site by using any e-mail address or phone number that may be listed on the localhost home page.

You can click Search to look for information on the Internet.


HTTP Error 403 - Forbidden
Internet Explorer

Ran IE with http://localhost/

Under Construction


The site you are trying to view does not currently have a default page. It may be in the process of being upgraded and configured.

Please try this site again later. If you still experience the problem, try contacting the Web site administrator.


--------------------------------------------------------------------------------

If you are the Web site administrator and feel you have received this message in error, please see "Enabling and Disabling Dynamic Content" in IIS Help.

To access IIS Help
Click Start, and then click Run.
In the Open text box, type inetmgr. IIS Manager appears.
From the Help menu, click Help Topics.
Click Internet Information Services.


  #6 (permalink)  
Old August 11th, 2006, 04:19 PM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

The second error makes sense. It means you don't have a file called Default.aspx in the the folder that maps to http://localhost and that you haven't enabled Directory Browsing (you can change the latter in the Properties dialog for the site in IIS).

The first error may be a permission problem. What are the security settings for the folder that maps to /WroxUnited? To find out, open a Windows Explorer, open the Properties for the folder and look at the Security tab.

Do you see an account called Network Service?

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
  #7 (permalink)  
Old August 11th, 2006, 04:32 PM
Authorized User
 
Join Date: Aug 2006
Location: , , .
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default

not on the folder /WroxUnited but on the /WroxUnited/App_Data folder only as stated in the book.

  #8 (permalink)  
Old August 11th, 2006, 04:36 PM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Not at all, or not with write access?

The account needs read/write permissions to the App_Data folder to be able to write to the database.

However, to be able to *read* the ASPX files, it also needs at least read permissions to the root of the site.

You want to take a look here for more information about this:

http://imar.spaanjaars.com/QuickDocId.aspx?quickdoc=263 especially the "Changing the Security Settings" section.

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
  #9 (permalink)  
Old August 11th, 2006, 05:27 PM
Authorized User
 
Join Date: Aug 2006
Location: , , .
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Directory Security tab - Under Authentication Methods i have Integrated Windows authentication checked
Home Directory – selections are
1. A directory located on this computer
2. Local Path - c:\inetpub\wwwroot with Read, Directory browsing, Log visits and Index this resource checked.
3. Application name - Default Application
4. Starting point: <Default Web Site>
5. Execute permissions: Scripts only
6. Application pool: DefaultAppPool (you will not is different to what is indicated in the link text. The other selection for this option is “MSSharePointAppPool” )

Added the Internet Guest Account (MachineName\IUSR_MachineName)

Copied and inserted your code and database and the ran http://localhost/TestDatabase.asp and got this know

Microsoft JET Database Engine error '80004005'
The Microsoft Jet database engine cannot open the file 'C:\Databases\WebSite.mdb'. It is already opened exclusively by another user, or you need permission to view its data.
/TestDatabase.asp, line 21


  #10 (permalink)  
Old August 11th, 2006, 05:43 PM
Authorized User
 
Join Date: Aug 2006
Location: , , .
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i did change the line ""Data Source=C:\Databases\WebSite.mdb;User Id=xxx;Password=xxxx"

Microsoft JET Database Engine error '80040e4d'

Cannot start your application. The workgroup information file is missing or opened exclusively by another user.

/TestDatabase.asp, line 21


 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Exception:Page Not found arnabghosh C# 4 December 3rd, 2005 11:43 AM
" Error" Page not found shoakat Classic ASP Databases 1 November 15th, 2004 03:59 AM
Results Page always returns '0 found' jonrayworth Dreamweaver (all versions) 4 November 9th, 2003 05:48 PM
HTTP 404 Page not found hosefo81 Beginning PHP 4 October 26th, 2003 06:27 PM
Page Not Found Error ztz02 Classic ASP Basics 2 June 25th, 2003 08:52 AM



All times are GMT -4. The time now is 10:45 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.