I to do connection and have error.
from u in db.aspnet_users where u.UserName.Equals(email) select u
error:
Cannot open database “AdvSkidki” requested by the login. The login
failed. Login failed for user ‘USER\User’.
I can not understand where the data user / user.
I have only <add name="AdvSkidkiEntities" connectionString="metadata=res://*/Entities.Model.csdl|res://*/Entities.Model.ssdl|res://*/Entities.Model.msl;provider=System.Data.SqlClient;provider connection string="data source=USER\SQLEXPRESS;initial catalog=AdvSkidki;integrated security=True;multipleactiveresultsets=True;App=EntityFramework"" providerName="System.Data.EntityClient" /> in web.config in myproject.
query to the database is in myproject.Domain.Conrete
update:
if the *. edmx located in the main project – all works well
nonnb pointed the problem, you have 3 solutions :
Integratedsecurity
Integrated, see how to impersonate a web application and how to impersonate a code sectionsecurity