Guest User

Guest User

  • Tech Writer
  • 2.1k
  • 472.8k

System.ArgumentNullException:DatabaseSqlClient

Jan 22 2020 12:39 PM
Hi Team
 
Who can help me, i am unable to launch my web application, i am getting database.sqlclient exception : login failed for user. Here is my logic below, this is on my AppStart folder(AuthConfig.cs);
  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""eNtsaMemberRegistrationDB""UserId""UserName", autoCreateTables: true);  
  15. }  
  16. }  
  17. }  
I have so far try to grant the permission to allow for execution on my sql database, using the sql syntax below;
use eNtsaMemberRegistrationDB
 
go
grant all on TestUser to Users;
 
I am getting this error on my DB
 
The ALL permission is deprecated and maintained only for compatibility. It DOES NOT imply ALL permissions defined on the entity.

Answers (3)