Click here to Skip to main content
15,895,788 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
it is giving me this error
dont know why ...


Please help me thanks in advance


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.
Posted
Comments
Varun Sareen 27-May-13 3:24am    
Please post some relevant code.
Amirsalgar1 27-May-13 3:26am    
okay sir wait
Amirsalgar1 27-May-13 3:31am    
using System;
using System.Web;
using System.Web.Profile;



public class ProfileCommon : System.Web.Profile.ProfileBase {

public virtual ShoppingCartExample.Cart SCart {
get {
return ((ShoppingCartExample.Cart)(this.GetPropertyValue("SCart"))); // HERE I GOT AN ERROR
}
set {
this.SetPropertyValue("SCart", value);
}
}

public virtual ProfileCommon GetProfile(string username) {
return ((ProfileCommon)(ProfileBase.Create(username)));
}
}
Amirsalgar1 27-May-13 3:33am    
Sir U can join me on team viewer .. to see my project ERROR
791 486 722
2513

1 solution

Refer - Failed to generate a user instance of SQL Server[^].
Quote:
you might need to delete the C:\Documents and Settings\username\Local Settings\Application Data\Microsoft\Microsoft SQL Server Data\SQLEXPRESS directory.

Then restart ur machine.
 
Share this answer
 
Comments
Amirsalgar1 27-May-13 3:25am    
so thanks ok i'm trying
Amirsalgar1 27-May-13 3:30am    
sir i am unable to find :(
username -> your computer name.

Then go to

C:\Documents and Settings\YOUR_COMPUTER_NAME\Local Settings\Application Data\Microsoft\Microsoft SQL Server Data

Can you find this ?
Amirsalgar1 27-May-13 3:33am    
Sir U can join me on team viewer .. to see my project ERROR
791 486 722
2513

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900