|
Subject:
|
The page cannot be found
|
|
Posted By:
|
tbroom
|
Post Date:
|
8/10/2006 6:35:06 PM
|
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
|
|
Reply By:
|
Imar
|
Reply Date:
|
8/11/2006 1:21:43 AM
|
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.
|
|
Reply By:
|
tbroom
|
Reply Date:
|
8/11/2006 11:48:37 AM
|
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
|
|
Reply By:
|
Imar
|
Reply Date:
|
8/11/2006 12:01:19 PM
|
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.
|
|
Reply By:
|
tbroom
|
Reply Date:
|
8/11/2006 1:55:02 PM
|
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.
|
|
Reply By:
|
Imar
|
Reply Date:
|
8/11/2006 4:19:33 PM
|
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.
|
|
Reply By:
|
tbroom
|
Reply Date:
|
8/11/2006 4:32:10 PM
|
not on the folder /WroxUnited but on the /WroxUnited/App_Data folder only as stated in the book.
|
|
Reply By:
|
Imar
|
Reply Date:
|
8/11/2006 4:36:57 PM
|
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.
|
|
Reply By:
|
tbroom
|
Reply Date:
|
8/11/2006 5:27:07 PM
|
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
|
|
Reply By:
|
tbroom
|
Reply Date:
|
8/11/2006 5:43:12 PM
|
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
|
|
Reply By:
|
Imar
|
Reply Date:
|
8/12/2006 7:54:00 AM
|
Looks like you missed this part in the article I linked to:quote: For a detailed examination of the actual account used by the web server in ASP and ASP.NET check out the FAQ: How Do I Determine the Security Account that IIS Uses to Run My Web Site?
For ASP.NET, you need the ASPNET (XP) or Network Service (Server 2003) account.
http://imar.spaanjaars.com/QuickDocId.aspx?quickdoc=263
The IUSR account is used only in classic ASP scenarios and with impersonation in ASP.NET
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.
|
|
Reply By:
|
Imar
|
Reply Date:
|
8/12/2006 7:56:43 AM
|
In addition to the above:
Data Source=C:\Databases\WebSite.mdb;User Id=xxx;Password=xxxx
is probably not correct. The User Id and Password are not the user id and password from your account, an admin account or another Windows account. You set these settings through Access. In your case, you don't need them.
However, all this is related to ASP and Access. In your case, you're using ASP.NET and SQL Server so different rules apply. Give the Network Service read access to your entire site, and write access to the App_Data folder and things should work.
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.
|
|
Reply By:
|
Imar
|
Reply Date:
|
8/18/2006 12:38:15 AM
|
Does it work now?
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.
|
|
Reply By:
|
tbroom
|
Reply Date:
|
8/18/2006 10:32:32 AM
|
I have give up on it due to i need to learn ASP.net at this time. I will look into it once i have copmpleted the task at hand.
|