【发布时间】:2013-01-23 13:42:01
【问题描述】:
每当我尝试打开 db_name.mdf 文件时,我都会收到以下错误:
The database '{path}\db_name.MDF' cannot be opened because it is version 706. This server supports version 662 and earlier. A downgrade path is not supported. Could not open new database 'db_name.MDF'. CREATE DATABASE is aborted. An attempt to attach an auto-named database for file {$path}\db_name.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.
连接字符串如下:
<add name="PasswordDBContext" connectionString="Data Source=(LocalDB)\v11.0;AttachDbFilename=|DataDirectory|\db_name.mdf;Integrated Security=True" providerName="System.Data.SqlClient" />
我正在 Visual Studio 中开发一个 asp.net mvc 4 项目。
非常感谢任何有助于解决问题的帮助。谢谢。
【问题讨论】:
-
好的,谢谢。那么,您认为我应该降级 mdf 吗?会有用吗?
标签: sql-server entity-framework asp.net-mvc-4 localdb