[英]A downgrade path is not supported convert version 782 to 706 and earlier
I am creating one application where I have used ASP.NET MVC with Entity Framework 4.5.2 and trying to access the SQL Server but it gives me an error that I can't access any database so I just convert it to the single user mode. 我正在创建一个将ASP.NET MVC与Entity Framework 4.5.2一起使用并尝试访问SQL Server的应用程序,但是它给我一个错误,我无法访问任何数据库,因此我将其转换为单用户模式。
Now after converting it to Single User mode the new error comes when I am trying to access in Server Explorer, Data Connections (Default Connection), it shows me the below dialog. 现在,将其转换为单用户模式后,当我尝试在服务器资源管理器中访问“数据连接(默认连接)”时,会出现新错误,它向我显示以下对话框。 I am not understand what is going wrong. 我不明白怎么了。
I have SQL Server version 11.0.2100.60. 我有SQL Server版本11.0.2100.60。
Please some one help me to solve this issue! 请有人帮我解决这个问题!
This worked for me (using Visual Studio 2015 community)... 这对我有用(使用Visual Studio 2015社区)...
Hope it helps 希望能帮助到你
Ufffff after so many solutions applied I found one from it. 在应用了许多解决方案后,我从中找到了一个。
Steps: 脚步:
1) Change Instance name in Visual Studio Link : 1)在Visual Studio 链接中更改实例名称:
Under Tools > Options > Database Tools > Data Connections > SQL Server Instance Name. 在工具>选项>数据库工具>数据连接> SQL Server实例名称下。 set (LocalDB)\\MSSQLLocalDB 设置(LocalDB)\\ MSSQLLocalDB
2) Change your connection string: 2)更改您的连接字符串:
From: 从:
<add name="DefaultConnection" connectionString="Data Source=./SQLExpress;AttachDbFilename=|DataDirectory|\DBName.Service-20160924032113.mdf;Initial Catalog=DBName.Service-20160924032113;Integrated Security=True;"providerName="System.Data.SqlClient" />
To: 至:
<add name="DefaultConnection" connectionString="Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=|DataDirectory|\DBName.Service-20160924032113.mdf;Initial Catalog=DBName.Service-20160924032113;Integrated Security=True;"providerName="System.Data.SqlClient" />
3) Remove User Instance=True from Connection String. 3)从连接字符串中删除User Instance = True。
Thanks to James P and Mark Homer for excellent response. 感谢James P和Mark Homer的出色响应。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.