у меня есть хост службы wcf, на котором размещается служба на IIS7,
iv'e добавил базу данных в папку App_Data,
сервис ссылается на проект DAL
, которая содержит модель Entity Framework, сгенерированную из моей БД (БД с узла службы WCF)


Я продолжаю получать вышеуказанное исключение сущности с этим внутренним сообщением:
{"An attempt to attach an auto-named database for file C:\\Users\\eranot65\\Documents\\Visual Studio 2010\\Projects\\CustomsManager\\WcfManagerServiceHost\\App_Data\\CustomesDB.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share."}
iv'e скопировал строку подключения из DAL / app.config в WcfManagerServiceHost / Web.config
add name="CustomesDBEntities" connectionString="metadata=res://*/Model1.csdl|res://*/Model1.ssdl|res://*/Model1.msl;provider=System.Data.SqlClient;provider connection string='Data Source=.\SQLEXPRESS;AttachDbFilename="C:\Users\eranot65\Documents\Visual Studio 2010\Projects\CustomsManager\WcfManagerServiceHost\App_Data\CustomesDB.mdf";Integrated Security=True;Connect Timeout=30;User Instance=True;MultipleActiveResultSets=True'" providerName="System.Data.EntityClient"
это происходит, когда я пытаюсь использовать свою модель сущности источника данных:
public List<Employee> GetEmployees()
{
List<Employee> employees = null;
using (CustomesDBEntities entites = new CustomesDBEntities())
{
employees = entites.Employees.ToList<Employee>();
}
return employees;
}
не похоже, что БД используется где-то еще,
(1) как я могу проверить, что какой-то другой процесс удерживает дескриптор моей БД?
(2) в идеях такое бывает?