sql server - SQL configuration for MVC Entity Framework -


need straightforward mvc deploy ...

i cannot db connection mvc web app other using localhost on azure vm.

the problem occurs webapp i'm developing and out-of-the-box vs2013 mvc template ... when deployed bizspark preconfigured vm.

when browsing vs on local host , can update records, cannot iis hosted site.

workflow

pre-deploy: enabled ef migrations

deploy: web publisher

connectionstrings:

 <add name="defaultconnection" connectionstring="data source=(localdb)\v11.0;attachdbfilename=|datadirectory|aspnet-webapplication1-20150429124346.mdf;integrated security=true;connect timeout=30" providername="system.data.sqlclient"/>     <add name="defaultconnection_databasepublish" connectionstring="data source=(localdb)\v11.0;attachdbfilename=|datadirectory|aspnet-webapplication1-20150429124346.mdf;integrated security=true;connect timeout=30" providername="system.data.sqlclient"/> 

question

are there configuration requirements sql work?

i'll piece explicat recommends, seems there should straightforward solution documentation using integrated security.

okay, if you're using sql server enterprise edition on vm, connection string ought this:

data source=servername;initial catalog=databasename;user id=sqlusername;password=sqluserpassword

you want use explicit sql login , password rather integrated security. integrated security, trying connect database using same credentials calling process. iis, calling process process under application pool running under, configured built-in account doesn't have access database. use explicit sql login/password.

connect sql management studio using same login/password ensure connection works correctly, before trying in website. if doesn't work, please post details of error or symptom you're seeing.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -