Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3
This is the forum to discuss the Wrox book Beginning ASP.NET 3.5: In C# and VB by Imar Spaanjaars; ISBN: 9780470187593
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 14th, 2009, 01:27 AM
epc epc is offline
Registered User
 
Join Date: Jul 2008
Posts: 7
Thanks: 4
Thanked 0 Times in 0 Posts
Default Chapter 18: Viewing Site at http://localhost

After completing the lab on pages 653-656 and viewing the site at http://localhost I clicked on a couple pages under Reviews and tried logging in and I received the following error message in my inbox:

"An attempt to attach an auto-named database for file C:\Users\Erich\Documents\Gateway\Beginning ASP.NET 3.5 VB\BegASPNET\Release\App_Data\PlanetWrox.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.

I read online that is may have to do with my connection string. I posted this below as a reference.

<addname="PlanetWroxConnectionString1"connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirector y|\PlanetWrox.mdf;Integrated Security=True;User Instance=True"providerName="System.Data.SqlClient"/>

I verified 3 times that my file system configuration mirrored the books directions.

Any thoughts would be appreciated.
 
Old November 14th, 2009, 04:19 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Quote:
I verified 3 times that my file system configuration mirrored the books directions.
Not entirely, I think:
Quote:
C:\Users\Erich\Documents\Gateway\Beginning ASP.NET 3.5 VB\BegASPNET\Release\App_Data\PlanetWrox.mdf failed
Take a look at the parent folder of the site: a folder under *your* documents folder, something the IIS account is not allowed to access.

Repeat the configuration steps but store the site in a global folder, such as C:\BegASPNET\Release as instructed in the book or something more general such as C:\Sites\PlanetWrox.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old November 14th, 2009, 10:33 AM
epc epc is offline
Registered User
 
Join Date: Jul 2008
Posts: 7
Thanks: 4
Thanked 0 Times in 0 Posts
Default

Thank you Imar!

I am taking classes right now and I thought I could categortize my work by placing your books site within my own directory. I followed your steps and it works great now. Sorry for not following the initial directions.
 
Old November 14th, 2009, 10:54 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Great, glad it's working now.

Note: C:\BegASPNET is not a required folder. You can choose other lcoations as well, as long as you don't store them under your user account's folders somewhere....

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
The Following User Says Thank You to Imar For This Useful Post:
epc (November 14th, 2009)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 18 - Viewing aspx page in IIS havardoj BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 10 August 17th, 2009 05:11 PM
Chapter 18: Unable to see the site THEME locochinoloco BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 3 September 18th, 2008 02:35 AM
Can't access http://localhost... with Firefox Mikael71 Internet Information Services 0 December 22nd, 2007 07:17 AM
http://localhost:8080/ (Why??) ababb BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 10 January 2nd, 2005 08:36 PM
http://localhost not working yllw98stng Beginning PHP 4 October 19th, 2003 06:43 AM





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