RDP & Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The c

As a starter i tried to modify and translate the Personal Website Starters kit from the VS2005Team SDK.

When i'm working on the machine were it's installed , under debugging, all works great.

But when i try to develop from my laptop, via RDP on the develop machine, i've got this message and can not debug (connect to the SQLxpres Server)

Does anybody now a solution

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: 	Sub Application_Start(ByVal sender As [Object], ByVal e As EventArgs)
Line 6: 		AddHandler SiteMap.SiteMapResolve, AddressOf Me.AppendQueryString
Line 7: 		If (Roles.RoleExists("Administrators") = False) Then
Line 8: 			Roles.CreateRole("Administrators")
Line 9:    End If


This is the connecting string

<add name="Personal" connectionString="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|Personal.mdf" providerName="System.Data.SqlClient" />

<remove name="LocalSqlServer"/>

<add name="LocalSqlServer" connectionString="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|aspnetdb.mdf" />



Answer this question

RDP & Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The c

  • drinkwater

    i've to do that as well. I had planned to set up a system without any monitor and keyboard to save space and work on it via RDP. Now i had to connect all this and i have to go to that machine as well !!

    I heard MS is working on it but we've to wait until a new SP.

    Hopes it comes yesterday!!!

    It works , but not the way i planned

    Good Luck all.


  • Sue_NC

    I don't have a real solution, but I can reproduce the exact problem. I work around it for now by logging on to the machine locally, and then attaching to that session via RDP. Sucks to have to do that, and not always practical.

  • RDP & Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The c