Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > BOOK: Beginning ASP.NET 4 : in C# and VB
| 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 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 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.
 
Old August 22nd, 2010, 04:49 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 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!
 
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.
 
Old August 22nd, 2010, 11:56 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

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!
 
Old August 22nd, 2010, 12:11 PM
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

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!
The Following 2 Users Say Thank You to Imar For This Useful Post:
martycom (August 23rd, 2010), thomastwosome (December 21st, 2011)
 
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
The Following User Says Thank You to martycom For This Useful Post:
thomastwosome (December 21st, 2011)
 
Old August 24th, 2010, 04:37 PM
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

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!




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





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