I was just hacking something together in Visual Web Developer Express, and was attempting to add a database to my App_Data directory when I ran into problems.
VWD kept timing out, and giving me a variety of error messages. Event Viewer contained the following: 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. [CLIENT: ]
I did some googling, and discovered the solution: you need to delete the C:\Documents and Settings\username\Local Settings\Application Data\Microsoft\Microsoft SQL Server Data\SQLEXPRESS directory.
What everyone else failed to emphasise is that you might need to restart Windows. Simply bouncing the SQL Server Express service doesn't always fix it.
This is what I did:
You can see if it's working properly by using the SSEUTIL utility. "sseutil -l" (that's a lower-case L) should list the databases currently being used by your user account.
Comments
thank you
Worked for me :)
Happened to me on VS2008/Vista
Thanks
Thank you very much, it
might be silly
Local Settings
Local Settings is a hidden folder.
the folder in vista is
Thanks
Thank you. You have saved
thanks bro..
Thanks
RE: failed to generate user instance of SQL Server
CANNOT OPEN DATABASE THROUGH APP_DATA
Thank you, This worked for
THANKSS
Wow dude you really save
It worked!!!!
very nice
you are the man!
Thank you very much. It
You are the best
Cool dudee... worked like
very good.