c# - Request Error IIS Method call -
i hosting wcf service in iis, , encountered error shown below:
request error
the server encountered error processing request. please see service page constructing valid requests service. exception message 'login failed user 'iis apppool\test'.'. see server logs more details
i call method link: http://192.168.1.111/truckservice.svc/getallcompa
browser can access truckservice.svc
file, methods throws error.
the methods shown service help link: http://192.168.1.111/truckservice.svc/help
don't know if make difference?
there isn't lot of info work with, did google error cannot seem find similar issue.
any ideas?
this part of error message tells quite bit, actually:
"the exception message 'login failed user 'iis apppool\test'.'"
you didn't give whole lot of information in question, i'm willing bet service using sql database (login failed user
common sql error).
assuming connection string correct, based on error you're using integrated security, means service trying login sql credentials it's being run under, in case iis apppool\test
.
if want continue using integrated security, need run application under account has proper permissions login sql server. alternatively, can update connection string use user name , password. personally, prefer integrated security.
finally, did check server logs more details error suggested?
added
to see/change account application pool running under, go iis manager (either start menu or type inetmgr
command prompt). in left hand pane, expand tree view see application pools node, , click on that.
select application pool (in case, test
), right click , select "advanced settings..." context menu.
this open new screen, , can see account running application pool:
click on ellipses (...
) , bring window can set account:
click button custom account , click "set..").
finally, enter account (you need enter domain to, mycompany\username
), enter password, confirm password , click ok.
note if password ever changes, application pool not run until password updated via steps above.
Comments
Post a Comment