asp.net - Sql server should be in the same system when hosting Web service in IIS -
i created wcf service in using entity framework sql server located in system. created web-application , consuming service , having no trouble entity framework. when host web service in iis getting exception in entity framework saying underlying provider failed on open. goggled nothing works.
as folks mentioned iis user network service user credentials while trying log in sql server. change application pool settings in iis.
step 1: open internet information service manager step 2: click on application pools in left navigation tree. step 3: select version pool. in case, using asp .net v4.0. if dont have version, select defaultapppool. step 4: right click on step 3, , select advanced settings. step 5: select identity in properties window , click button change value. step 6: select local system in built-in accounts combo box , click ok. that's it. run application. works well.
also check :
and
Comments
Post a Comment