sql2005问题,Unable to open the physical file 何解?
具体是这样的:我在另外一个电脑上用vs08的登陆控件做了个登陆器。然后系统自动生成了那个aspnetdb的数据库。
今天换了电脑了,把项目转移过来,发现出现了这个问题:
Unable to open the physical file "F:\Project——基于身份验证的电子邮件系统\MailCode\App_Data\aspnetdb.mdf". Operating system error 5: "5(拒绝访问。)".
An attempt to attach an auto-named database for file F:\Project——基于身份验证的电子邮件系统\MailCode\App_Data\aspnetdb.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
异常详细信息: System.Data.SqlClient.SqlException: Unable to open the physical file "F:\Project——基于身份验证的电子邮件系统\MailCode\App_Data\aspnetdb.mdf". Operating system error 5: "5(拒绝访问。)".
An attempt to attach an auto-named database for file F:\Project——基于身份验证的电子邮件系统\MailCode\App_Data\aspnetdb.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.
请问这是怎么回事?