Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > BOOK: Beginning ASP.NET 4 : in C# and VB
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning ASP.NET 4 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4 : in C# and VB 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
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 21st, 2010, 11:14 PM
Registered User
 
Join Date: Jul 2010
Posts: 3
Thanks: 1
Thanked 1 Time in 1 Post
Default Ch12 pg 406-407 (Try it Out)access db within VWD

Vista 64 bit, modify permissions and others are set

I get "Failed to generate a user instance of SQL Server due to a failure in starting the process for the user interface." when I dbl click PlanetWrox.mdf in VWD database explorer. I have worked through ch19 and appendix B as best I could, but have not been able to get around this problem.

There are a lot of older messages/replies in forums on other sites for the same error message as above. These are for 2005 VWD, suggesting "local" problems/mismatch and to remove older user instances by deleting a SQLExpress folder with files, under a path not available in Windows Vista.
I not sure what else to include here.
Reply With Quote
  #2 (permalink)  
Old August 22nd, 2010, 04:49 AM
Imar's Avatar
Wrox Author
Points: 72,038, Level: 100
Points: 72,038, Level: 100 Points: 72,038, Level: 100 Points: 72,038, Level: 100
Activity: 50%
Activity: 50% Activity: 50% Activity: 50%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,080
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Hi there,

A couple of things to test / check:

1. Which version of SQL Sevrer are you using? Use "SQL Server Configuration Manager" from the start menu to find out

2. What's the name of your SQL Instance?

3. What happens when you create a brand new web site, add App_Data and a SQL Server databae and open that. Does that work?

4. Are you trying this out with your own database, or with one from the download?

5. Can you log in using SQL Server Management Studio?

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 August 22nd, 2010, 11:28 AM
Registered User
 
Join Date: Jul 2010
Posts: 3
Thanks: 1
Thanked 1 Time in 1 Post
Default Ch12 pg 406-407 (Try it Out)access db within VWD Reply to Thread

Hi Imar,

1. Which version of SQL Server are you using? Use "SQL Server Configuration Manager" from the start menu to find out. MS SQL Server 2008 R2
2. What's the name of your SQL Instance? I guess the Server Browser should not be in stopped state.
Name State Start Mode
SQL Server Browser Stopped Other
SQl Server(SQLEXPRESS) Running Automatic
SQL Server Agent(SQLEXPRESS) Stopped Other

Server .SQLExpress connected as MARTY-PC\MARTY

3. What happens when you create a brand new web site, add App_Data and a SQL Server database and open that. Does that work? (App_Data folder was automatically created on new.) I dragged the book download PlanetWrox. mdf file in , doubled clicked it, and got the same error message.

4. Are you trying this out with your own database, or with one from the download?

5. Can you log in using SQL Server Management Studio?
Yes! I have 2 registered server names: ./SQLExpress and MARTY-PC\SQLExpress Both connections tested ok using Windows Authentication.
Reply With Quote
  #4 (permalink)  
Old August 22nd, 2010, 11:56 AM
Imar's Avatar
Wrox Author
Points: 72,038, Level: 100
Points: 72,038, Level: 100 Points: 72,038, Level: 100 Points: 72,038, Level: 100
Activity: 50%
Activity: 50% Activity: 50% Activity: 50%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,080
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Quote:
I dragged the book download PlanetWrox. mdf file in , doubled clicked it, and got the same error message.
But can you try it out with a new database? E.g. create a brand new site, right-click App_Data, choose Add New Item and then add a SQL database. Then trying adding a table. Does that work?

Quote:
I guess the Server Browser should not be in stopped state.
It doesn't have to run. It broadcasts the existence of SQL on the network, but you don't need it if you know its instance name.

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
  #5 (permalink)  
Old August 22nd, 2010, 12:11 PM
Imar's Avatar
Wrox Author
Points: 72,038, Level: 100
Points: 72,038, Level: 100 Points: 72,038, Level: 100 Points: 72,038, Level: 100
Activity: 50%
Activity: 50% Activity: 50% Activity: 50%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,080
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

BTW, have you tried emptying the folder uded by SQL? It's probably not located here:

C:\Documents and Settings\USERNAME\Local Settings\Application Data\Microsoft\Microsoft SQL Server Data\SQLEXPRESS.

but here:

C:\Users\USERNAME\Local Settings\Application Data\Microsoft\Microsoft SQL Server Data\SQLEXPRESS.

on Vista.

If not, try searching for SQLExpress folders under your Users folder...

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
The Following 2 Users Say Thank You to Imar For This Useful Post:
martycom (August 23rd, 2010), thomastwosome (December 21st, 2011)
  #6 (permalink)  
Old August 23rd, 2010, 02:06 PM
Registered User
 
Join Date: Jul 2010
Posts: 3
Thanks: 1
Thanked 1 Time in 1 Post
Default [BegASP.NET4] Ch12 pg 406-407 (Try it Out)access db within VWD

BTW, have you tried emptying the folder uded by SQL? It's probably not located here:

C:\Documents and Settings\USERNAME\Local Settings\Application Data\Microsoft\Microsoft SQL Server Data\SQLEXPRESS.

but here:

C:\Users\USERNAME\Local Settings\Application Data\Microsoft\Microsoft SQL Server Data\SQLEXPRESS.

on Vista.

The above path does not show up in (Vista) Windows Explorer. After doing a search for SQLEXPRESS folder in the C: Drive, in the explorer, I found the folder as a shortcut. Double clicking the shortcut, then changed the folders presented under Desktop to

USERNAME\AppData\Local\ Microsoft\Microsoft SQL Server Data\SQLEXPRESS. It was amazing to see all the new folders in the path showing up and expanded.

After I deleted the files in this folder I was finally able to see the database and all its files under the project Data Connections.


Thanks! Imar
Reply With Quote
The Following User Says Thank You to martycom For This Useful Post:
thomastwosome (December 21st, 2011)
  #7 (permalink)  
Old August 24th, 2010, 04:37 PM
Imar's Avatar
Wrox Author
Points: 72,038, Level: 100
Points: 72,038, Level: 100 Points: 72,038, Level: 100 Points: 72,038, Level: 100
Activity: 50%
Activity: 50% Activity: 50% Activity: 50%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,080
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Excellent, glad it's working and thanks for the follow up.

Is USERNAME the actual name of the folder or does it represent some user on your system?

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
Error on the page 407. Grace BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6 2 July 12th, 2009 02:52 PM
Beg DWMX 2004 CH12 progrm crashing pg 434 Roo Dreamweaver (all versions) 7 October 3rd, 2006 01:42 PM
Opening DB from VWD - per p. 683-684 JimBloomfield BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 0 June 16th, 2006 11:49 AM
Inserting into access db using VWD. Peki ASP.NET 2.0 Basics 1 April 11th, 2005 09:12 PM



All times are GMT -4. The time now is 11:24 AM.


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