Gcobani Mkontwana

Gcobani Mkontwana

  • 570
  • 1.9k
  • 407.3k

System.Data.SqlClient.SqlException:Login failed for user

Jan 22 2020 3:15 PM
Hi Team
 
I am experience an error closed day and half now and cant seem to find any resolution to this issue. Who can help me to fix this error? "System.Data.SqlClient.SqlException:Login failed for user. Here is my logic below. 
  1. using System;  
  2. using System.Collections.Generic;  
  3. using System.Linq;  
  4. using System.Text;  
  5. using System.Web;  
  6. using Microsoft.Web.WebPages.OAuth;  
  7. using WebMatrix.WebData;  
  8. namespace eNtsaPortalWebsiteProject  
  9. {  
  10. public class AuthConfig  
  11. {  
  12. public static void RegisterAuth()  
  13. {  
  14. WebSecurity.InitializeDatabaseConnection("MyString""Users""UserName""FullName", autoCreateTables: true);  
  15. }  
  16. }  
  17. } 

Answers (4)