Solved

transfering website project to another computer

Posted on 2011-03-02
6
259 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
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

 

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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

685 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