WCF Custom FaultException thrown but ProtocolException Recived by Client -


i have wcf service coded throw custom faultexception under conditions. when hosted locally , on several servers executes excpected, custom fault thrown service custom fault caught client, on production , uat server custom fault thrown client recieves protocol exception (500 error).

is aware of iis or sever setting effecting wcf server? issue driving me crazy

i having similar issue,

our server using third party web service, when client connects our server same machine, our server can catch fault exception, if client connecting on network our server can't handle fault exception, , getting "500 internal server error".

i used sniffer see incoming data, , can see webservice sending fault exception in both cases, third party webservice have no control on it.

the clients use .net remotting connect server.

the solution:

add remotingconfiguration.customerrorsmode = customerrorsmodes.off; remoting server, reason affecting exceptions (the server) receiving. not ideal solution because exposing our servers exceptions ...


Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -