Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | 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 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 Display Modes
  #1 (permalink)  
Old October 16th, 2014, 08:54 PM
Registered User
Points: 28, Level: 1
Points: 28, Level: 1 Points: 28, Level: 1 Points: 28, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2014
Posts: 6
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.
Reply With Quote
  #2 (permalink)  
Old October 18th, 2014, 05:03 PM
Imar's Avatar
Wrox Author
Points: 71,164, Level: 100
Points: 71,164, Level: 100 Points: 71,164, Level: 100 Points: 71,164, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 16,948
Thanks: 79
Thanked 1,555 Times in 1,532 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!
Reply With Quote
The Following User Says Thank You to Imar For This Useful Post:
RachelKC (October 19th, 2014)
Reply


Thread Tools
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
Copying in VBA jeskit Excel VBA 1 February 2nd, 2011 10:01 AM
Copying DOCTYPE madanshah16 XSLT 1 August 18th, 2007 12:23 PM
Copying ranges mtowle Excel VBA 2 November 2nd, 2005 05: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



All times are GMT -4. The time now is 03:32 AM.


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