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 October 16th, 2014, 08:54 PM
Registered User
 
Join Date: Oct 2014
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
Default copying to new computer

I built my websites using this book. I have new computer and installed VS 2008, copied my programs (websites) and installed SQL 2008 Express R2.

I get errors when I try to run in ASP.net (or click ctrl F5) It also won't use my database. I see my databases in the server explorer window but when I click refresh, I get message: "Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed."

When I connect to the existing database, it adds the full path and then adds ".dbo" extension to end of database name. But even then, it will not run in the web browser local copy window when I click CTRL F5. At that point, I get
error message:
Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed.

Source Error:


Line 5: void Application_Start(object sender, EventArgs e) {
Line 6: SiteMap.SiteMapResolve += new SiteMapResolveEventHandler(AppendQueryString);
Line 7: if (!Roles.RoleExists("Administrators")) Roles.CreateRole("Administrators");
Line 8: if (!Roles.RoleExists("Friends")) Roles.CreateRole("Friends");
Line 9: }
(Old computer was XP, new computer Window 7 Professional, 64 bit)
Please help!

Last edited by RachelKC; October 16th, 2014 at 09:04 PM..
 
Old October 18th, 2014, 05:03 PM
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,

Search this forum or Google for the error message "Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance.". There are a number of different issues (and resolutions) that lead to this error so you'll have to see which one applies to you.

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:
RachelKC (October 19th, 2014)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Copying in VBA jeskit Excel VBA 1 February 2nd, 2011 11:01 AM
Copying DOCTYPE madanshah16 XSLT 1 August 18th, 2007 12:23 PM
Copying ranges mtowle Excel VBA 2 November 2nd, 2005 06:35 AM
Copying from one table to another Clive Astley VB Databases Basics 2 August 23rd, 2005 12:48 AM
Copying files marclena General .NET 2 June 18th, 2004 08:24 AM





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