Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 3.5 > BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3
| Search | Today's Posts | Mark Forums Read
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
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 15th, 2009, 05:33 AM
Authorized User
 
Join Date: Jan 2009
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter11 The SQL database file cannot be created in App_Data folder

In section 11.4 (Chapter 14), the first trying example.

Step 1. To create a new SQL Server database via right clicking "App_Data" and choose "Add new item". After entered the file name "PlanetWrox.mdf" and click "OK" button. A error dialog shows:

The connection to SQL server file (*.mdf) required SQL Server Express 2005 to be installed. Please confirm the related components has been installed. The component can be downloaded from http:/go.microsoft.com....

My visual studio version is 2008 Professional Simplified Chinese, the SQL server is SQL 2005 Developer Edition Simpl. Chinese.

Does anybody know how to fix this issue?
Reply With Quote
  #2 (permalink)  
Old January 15th, 2009, 06:05 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi clark,

The book assumes you have a local SQL Server called (local)\SqlExpress. If you install the Developer edition, your instace is simply called (local).

Check out Appendix b for instructions on how to configure the application to support other instance names as well.

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!
Reply With Quote
  #3 (permalink)  
Old January 15th, 2009, 06:46 AM
Authorized User
 
Join Date: Jan 2009
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I just checked the Appendix B.1.3, the TCP/IP and Named Pipes are already Enabled in Network Configuration. In other word, the sql server should be allowed for remote connections.

For what you mentioned that "configure install name", I don't know what do you mean. Could you pls explain more clearly? Thanks.
Reply With Quote
  #4 (permalink)  
Old January 15th, 2009, 07:26 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Check out pages 697 and 702 and onwards which show you how to reconfigure the LocalSqlServer connection string and reconfigure the app settings.

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!
Reply With Quote
  #5 (permalink)  
Old January 15th, 2009, 08:38 AM
Authorized User
 
Join Date: Jan 2009
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Imar View Post
Check out pages 697 and 702 and onwards which show you how to reconfigure the LocalSqlServer connection string and reconfigure the app settings.

Imar
Faint!
I'm reading the Chinese version of your book. It only has 668 pages.

Could you please tell me the section number, like B.1.3 or something else?
Reply With Quote
  #6 (permalink)  
Old January 15th, 2009, 08:43 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

My Chinese is a little rusty, but I think it's section B2 on page 664 and onwards in the Chinese edition .....

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!
Reply With Quote
  #7 (permalink)  
Old January 15th, 2009, 10:04 AM
Authorized User
 
Join Date: Jan 2009
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

OK. Let me try to read those pages...
Reply With Quote
  #8 (permalink)  
Old January 15th, 2009, 10:29 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

>> OK. Let me try to read those pages...

Hope your Chinese is better than mine, or it'll be pretty difficult....;-)

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!
Reply With Quote
Reply


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
sql 2000 under app_data directory Maxxim ASP.NET 2.0 Basics 4 February 14th, 2007 08:21 PM
Can't access local file in App_Data folder VictorVictor ASP.NET 2.0 Professional 8 January 23rd, 2007 10:15 AM
upload file in server ( in folder NOT in database) virtual_manu Pro JSP 2 February 20th, 2006 08:39 AM
Deletion of a created database in sql server pramos.21d SQL Server 2000 0 March 2nd, 2005 09:29 AM





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