Keyword Not Supported: Metadata

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

This line:

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


        
11条回答
  •  感情败类
    2020-12-01 04:56

    Just to add another possibility (which I encountered) - which might be the case if you're developing/maintaining an Azure WebApp, using a connection string saved in Azure's Application Settings.

    Beside each connection string in the Application Settings is a dropdown for the connection string type - it's very easy to forget to set this to 'Custom' for Entity Framework values and leave it at the default (SQL Database) - which also causes the above error.

提交回复
热议问题