Keyword Not Supported: Metadata

后端 未结 11 1129
星月不相逢
星月不相逢 2020-12-01 04:34

This line:

WebSecurity.InitializeDatabaseConnection(connectionStringName: \"DefaultConnection\", userTableName: \"UserProfile\", userIdColumn: \"UserID\", us         


        
11条回答
  •  [愿得一人]
    2020-12-01 04:54

    Check in this place

    
    

    As you can see there's a two connection string one for ADO and another for the Login System or whatever you want. In my case, ConnectionString is for Login system so I've used that in:-

        SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString);
        SqlCommand cmd = null;
        SqlDataReader dr = null;
        protected void Page_Load(object sender, EventArgs e)
    

提交回复
热议问题