asp.net - Configure IIS 8 for SQL Server Authentication -


i'm getting following error when trying query sql server 2012 windows 2012 iis 8.5, in mvc 4 website:

sqlexception (0x80131904): login failed user [domain/user]

i have connection string in web.config set way did in olden days:

<add name="myproject.properties.settings.defaultconn" connectionstring="data source=myserver;initial catalog=mydatabase;persist security info=true;user id=myuser;password=mypassword" 

iis8 seems using application pool login, bypassing connectionstring in web.config.

database , website on different servers. there straightforward way can configure iis bypass application pool , read connectionstring web.config?

if persist security info set true, ignored. msdn

the connectionstring similar ole db connection string, not identical. unlike ole db or ado, connection string returned same user-set connectionstring, minus security information if persist security info value set false (default). .net framework data provider sql server not persist or return password in connection string unless set persist security info true.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -