ASP.NET相关错误

时间:2013-10-13 18:09:57

标签: asp.net

如果你能解决我的问题,我真的很感激。我无法在另一台计算机上打开我的网站,发生以下错误:

 Server Error in '/WebSite2' Application.

An attempt to attach an auto-named database for file C:\Users\evisen\Desktop\Amy the  conqueror\WebSite2\App_Data\Database.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.

 Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

  Exception Details: System.Data.SqlClient.SqlException: An attempt to attach an auto-named database for file C:\Users\evisen\Desktop\Amy the conqueror\WebSite2\App_Data\Database.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.

 Source Error: 

 An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

我希望我能尽我所能。谢谢!

1 个答案:

答案 0 :(得分:1)

当您的连接字符串出现问题时,通常会出现此错误。尝试检查你的连接字符串。

同时检查此相关forum。希望有所帮助!