简体   繁体   English

为什么Visual Studio告诉我数据库不存在而存在?

[英]Why does Visual Studio tell me that a database exists when it does not?

I get the following error, but I am certain the database does not exist. 我收到以下错误,但是我确定数据库不存在。 Why does Visual Studio tell me that it does ? 为什么Visual Studio告诉我它呢? Maybe it did exist at one time, but I have searched the entire hard drive and it is no where to be found. 也许它确实曾经存在过,但是我已经搜索了整个硬盘,却找不到它。

 [SqlException (0x80131904): Database 'C:\Users\develop1\Documents\Visual Studio 2013\Projects\ToolingDevelopmentFolder3\ColdDrawWeb2\App_Data\aspnet-ColdDrawWeb3-20131218105113.mdf' already exists. Choose a different database name.

Don't look for that mdf file. 不要寻找该mdf文件。 Look for another mdf file with a completely different name, but that represents a database with the same name in Sql Server. 查找具有完全不同名称的另一个mdf文件,但该文件表示Sql Server中具有相同名称的数据库。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 为什么 Visual Studio 告诉我 AddJsonFile() 方法没有定义? - Why does Visual Studio tell me that the AddJsonFile() method is not defined? 为什么在我构建项目时Visual Studio没有在Test Explorer中给我测试? - Why Does Visual Studio not give me a test in Test explorer when I build my project? 为什么当我想通过 C# 运行 GAMS 代码时,visual studio 给我错误? - Why does visual studio gives me error when I want to run the GAMS code via C#? 为什么Visual Studio会提示我不要将`this`关键字用于实例变量? - Why does Visual Studio prompt me NOT to use the `this` keyword for instance variables? 为什么Visual Studio会给我这种预期的错误类型 - Why does visual studio give me this error type expected 为什么 Resharper 告诉我可能存在 NullReferenceException? - Why does Resharper tell me there is a possible NullReferenceException? 为什么 SQLite 告诉我“没有当前行”? - Why does SQLite tell me "No current row"? 为什么Visual Studio没有告诉我错误在视图中? - Why didn't Visual Studio tell me the error was in the view? 为什么在选择设备时 Visual Studio 会尝试部署到模拟器 - Why does Visual Studio attempt to deploy to emulator when device is selected 为什么进入调试时Visual Studio 2010会挂起? - Why does Visual studio 2010 hang when entering debug?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM