有兩個aspnetdb.mdf問題..

本帖最後由 luckiejacky 於 2015-3-12 19:06 編輯
  1. <connectionStrings>
  2.     <add name="ApplicationServices" connectionString="data source=.\SQLEXPRESS;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;Integrated Security=SSPI;User Instance=true"
  3.       providerName="System.Data.SqlClient" />
複製代碼
有兩個ASP.NET application
想用同一個Membership database
when I specify absolute path in another application, I get errors
  1. The following message may help in diagnosing the problem: An attempt to attach an auto-named database for file C:\\Users\\Jacky\\Documents\\Visual Studio 2010\\Projects\\RCS\\2_03\\2_03\\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.
複製代碼
Any ideas?

A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.
It will be locked if another application still using

TOP