An exception of type 'System.Data.SqlClient.SqlException' - Microsoft Getting Started with ASP.NET MVC 5 Movie Website

后端 未结 2 831
长发绾君心
长发绾君心 2021-01-27 08:28

The error i\'m getting is An exception of type

\'System.Data.SqlClient.SqlException\' occurred in EntityFramework.dll but was not handled in user code.

2条回答
  •  [愿得一人]
    2021-01-27 09:09

    Your EF connection string is using the "old" (since VS 2015 if I'm not mistaken**) way of connecting to localdb. You can see your DefaultConnection using the "new" way.

    So:

    
                                                            
提交回复
热议问题