I am in general having problems getting your samples to find the NorthWindIB database.
I used your Database Installer tool but that hasn't helped.
This is your security example that requires login and includes registration.
To solve datbase connection problems in this case I put both the aspnetdb.mdf and NorthWindIB.mdf in the App_Data directory.
Then I modified the web.config as follows: ( I list only moded parts- find BRUCELAPTOP etc)
<
edmKey name="Default" connection="metadata=res://*/Code.ServerModelNorthwindIB.csdl|res://*/Code.ServerModelNorthwindIB.ssdl|res://*/Code.ServerModelNorthwindIB.msl;provider=System.Data.SqlClient;provider connection string="Data Source=BRUCELAPTOP\SQLEXPRESS;Initial Catalog=NorthwindIB;Integrated Security=True;MultipleActiveResultSets=True"" containerName="AspAuthentication.Code.ServerModelNorthwindIBContext">
and
<
add name="ServerModelNorthwindIBContext" connectionString="metadata=res://*/Code.ServerModelNorthwindIB.csdl|res://*/Code.ServerModelNorthwindIB.ssdl|res://*/Code.ServerModelNorthwindIB.msl;provider=System.Data.SqlClient;provider connection string="Data Source=BRUCELAPTOP\SQLEXPRESS;AttachDbFilename=|DataDirectory|\NorthwindIB.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True;MultipleActiveResultSets=True"" providerName="System.Data.EntityClient" />
I then opened the NorthWindIB data base using server explorer.
Then I connected for update the EF model to the same database.
I then went into domain model and regenerated it.
I can logon successfully to manager using login window.
When I press Fetch button I get the message
Cannot open database "NorthwindIB" requested by the login. The login failed.
Login failed for user 'IRDM\bruce'.
<!--
Forms authentication is used here. -->
<
authentication mode="Forms" />
I am not sure what to do next.
Any ideas? (IRDM is my network domain in active directory)
Bruce