Solved

transfering website project to another computer

Posted on 2011-03-02
6
256 Views
Last Modified: 2012-05-11
Hi,

I am trying to transfer a web site project in microsoft visual studio 2010 from one computer to anotherl  Both running Visual studio 2010 and SQL Express 2008.  
I copy and pase the website folder to the new computer and tryied restoring database on the new computer which doesn't work.
Also tried coying the .mdf and .log files to the sql data file and attaching the .mdf file.  This works in management studio but when running the web site and trying to log in give an error with user instances.

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

Anyone know how to solve this or a good guide on how to transfer web site project to another computer.

Thank you
0
Comment
Question by:Claudiu10
  • 5
6 Comments
 
LVL 9

Expert Comment

by:joshbula
ID: 35020630
Backing up and Restoring a sql database to another server doesn't automatically get the security logins also.  Delete the user from the "Databases/YourDatabase/Security" folder under the database, then add it back again.  Make sure the user exists in the "Security/Logins" folder for the server first.
0
 

Author Comment

by:Claudiu10
ID: 35020754
well that didn't help now I can't even connect to sql express server with management stuido error 4064
0
 

Author Comment

by:Claudiu10
ID: 35020768
tried that and thought maybe if I cange the default database to the one i want may solve it but that maybe unable to connect to sql express at all through management studio
0
Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 

Author Comment

by:Claudiu10
ID: 35021143
Hi, so getting all kinds of errors now.  Have to un-install sql server and re-install it.  If someone knows a good complete guide to transfering web site project and database to another computer please post.  
0
 

Accepted Solution

by:
Claudiu10 earned 0 total points
ID: 35021843
Hi, found a solution.  

delete data in folder under C:\Users\User\AppData\Local\Microsoft\Microsoft SQL Server Data\sqlexpress.

I don't know why nothing is straight foward with microsoft.
0
 

Author Closing Comment

by:Claudiu10
ID: 35067783
Because it works
0

Featured Post

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
This video discusses moving either the default database or any database to a new volume.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now