0
我正在使用SQL Server 2008 Enterprise與VSTS 2008,並且我正在開發一個簡單的Web應用程序使用ASP.Net和窗體身份驗證。奇怪的SQL Server附加數據庫錯誤
當我用我的ASP.Net項目(我想用這個工具來手動添加一些Forms身份驗證的用戶),我遇到了以下錯誤(SQLEXCEPTION)的VSTS的配置工具/菜單,
Trying to attach file D:\Projects\MyTest\App_Data\aspnetdb.mdf to automatically named database failed. It may be caused by existing the same name database, or may be caused by specified file can not be opened or caused by the specified file exists in UNC share.
在我的計算機中,dir D:\Projects\MyTest\App_Data
下沒有aspnetdb.mdf,以及爲什麼會搜索此目錄?在運行配置工具之前,我已經使用aspnet_regsql成功生成了數據庫。爲什麼會有這樣的錯誤?如何解決它?
由於事先 喬治
添加命名連接是爲了什麼目的,爲什麼它與我的問題有關? – George2 2010-05-06 07:56:44
查看編輯回覆 – 2010-05-06 08:06:20
看看http://msdn.microsoft.com/en-us/library/ff648345.aspx – 2010-05-06 08:06:52