c# - RiaServices DomainService Server side exception problem -
currently i'm working on silverlight project depend on ria linqtosql , i’m using .net version 4
sometimes when add few records client side contain missing data null or wrong reference server raise exception , throw client throwing domainoperationexception along error details explain refrence name, , that’s great.
so can handle on client , popup appropriate message user , working on development computer.
but when deployed project on remote server , found server not sending detailed error message along domainoperationexception.
i read many threads issue , said it’s security reasons . , said if want exception hold detailed error message should add following web.config
<behaviors> <servicebehaviors> <behavior> <servicedebug includeexceptiondetailinfaults="true" httphelppageenabled="true" /> <servicemetadata httpgetenabled="true" /> </behavior> </servicebehaviors> </behaviors>
but it’s seems work wcf services , it’s not working domainservices.
i mean it’s work tag , not work tag
so tried solution , , override onerror method on domainservice in server side.
and solution worked on development computer, on remote server not triggered @ all.
did faced similar problem ?
i found solution adding
<customerrors mode="off" />
to web.config
Comments
Post a Comment