wcf - Custom Domain Service Fails but Authentication Works (Silverlight Biz App Template) -
i'm hosting silverlight business application template derived application on iis server. i'm using built-in forms authentication working perfectly.
unfortunately, i've added additional service has peculiar behavior. if remote server , use site works expected. if connect site pc, authentication still works custom domain service failing following error:
ie throws error message:
system.servicemodel.domainservices.client.domainoperationexception: load operation failed query 'get___'. exception of type 'system.servicemodel.domainservices.client.domainoperationexception' thrown.
i tried debugging process , little more information:
system.servicemodel.domainservices.client.domainoperationexception: load operation failed query 'get___'. remote server returned error:notfound. ---> system.servicemodel.communicationexception: ...
my clientaccesspolicy , crossdomain policies in both wwwroot , root of website , following:
<?xml version="1.0" encoding="utf-8" ?> <access-policy> <cross-domain-access> <policy> <allow-from http-request-headers="*"> <domain uri="*" /> <domain uri="http://*" /> <domain uri="https://*" /> </allow-from> <grant-to> <resource path="/" include-subpaths="true" /> </grant-to> </policy> </cross-domain-access> </access-policy>
the domain service that's failing using ado.net entity model. entities of in same aspnetdb database used authentication , i've granted file permissions iis user (and administrator, got desperate) app_data folder contains db.
again, services work if connecting locally on server. auth/registration services works when connecting remotely.
i've searched 2 days , tried every solution can find can't seem working. advice or direction appreciated.
although pretty late project might else. sounds having problem authenticating underlying database. may want sort of impersonations happening @ database level.
i had similar problem, , turned out trying access database sliverlight client pc account never existed in authorized accounts (although authentication working in case). changing application pool identity fixed me (i using network service account on pc joined domain uses computer$ account login on behalf)
when run communicationexception, want @ innerexception tell real issue.
if there's nothing you'll need debug on server side (step through service) see throwing exception.
communicationexception occurs if exception thrown on wcf server side , not wrapped fault causing channel become faulted (in limited experience @ least).
hope helps somebody.
Comments
Post a Comment