Posted on: 5/17/2013 1:37:50 PM | Views : 247

Hi all, i have being trying to create roles through asp.net membership providers. but it shows me "Unable to connect to SQL Server database" Roles.CreateRole("Admin"); But when i use plain ado.net connection class and open connection for the same connection string it works.  SqlConnection con = new SqlConnection("Data Source=abc;Initial Catalog=xyz;User ID=sa;Password=abc@12345;");            

Go to the complete details ...