network protocols - WCF Weird Service Behavior -


i'm using wshttpbinding service working since now. wpf application (client) connected , automatically receives information server every 15 seconds.

i've been noticing (once in while, days there no problem) client receives following exception:

system.servicemodel.protocolexception: content type text/html; charset=utf-8 of response message not match content type of binding (application/soap+xml; charset=utf-8). if using custom encoder, sure iscontenttypesupported method implemented properly. first 1024 bytes of response were: '<html>     <head>         <title>  </title>         <script type="text/javascript">         function bredir(d,u,r,v,c){var w,h,wd,hd,bi;var b=false;var p=false;var s=[[300,250,false],[250,250,false],[240,400,false],[336,280,false],[180,150,false],[468,60,false],[234,60,false],[88,31,false],[120,90,false],[120,60,false],[120,240,false],[125,125,false],[728,90,false],[160,600,false],[120,600,false],[300,600,false],[300,125,false],[530,300,false],[190,200,false],[470,250,false],[720,300,true],[500,350,true],[550,480,true]];if(typeof(window.innerheight)=='number'){h=window.innerheight;w=window.innerwidth;}else if(typeof(document.body.offsetheight)=='number'){h=document.body.offsetheight;w=document.body.offsetwidth;}for(var i=0;i<s.length;i++){bi=s[i];wd=math.abs(w-bi[0]);hd=math.abs(h-bi[1]);if(wd<=2&&hd<=2){b=true;p=bi[2];}}if(b||(w<100&&w!==0)||(h<100&&h!==0)){if(p&&self==parent){self.close();return;}return'/b'+'anner.php?w='+w+'&h='+h+'&d='+d+'&u='+u+'&r='+r+'&view='+v;}else{return c;}}         </script>     </head>     <body onload="window.l'.  server stack trace:     @ system.servicemodel.channels.httpchannelutilities.validaterequestreplyresponse(httpwebrequest request, httpwebresponse response, httpchannelfactory factory, webexception responseexception, channelbinding channelbinding)    @ system.servicemodel.channels.httpchannelfactory.httprequestchannel.httpchannelrequest.waitforreply(timespan timeout)    @ system.servicemodel.channels.requestchannel.request(message message, timespan timeout)    @ system.servicemodel.channels.clientreliablechannelbinder`1.requestclientreliablechannelbinder`1.onrequest(trequestchannel channel, message message, timespan timeout, maskingmode maskingmode)    @ system.servicemodel.channels.clientreliablechannelbinder`1.request(message message, timespan timeout, maskingmode maskingmode)    @ system.servicemodel.security.securitysessionclientsettings`1.securityrequestsessionchannel.request(message message, timespan timeout)    @ system.servicemodel.channels.servicechannel.call(string action, boolean oneway, proxyoperationruntime operation, object[] ins, object[] outs, timespan timeout)    @ system.servicemodel.channels.servicechannelproxy.invokeservice(imethodcallmessage methodcall, proxyoperationruntime operation)    @ system.servicemodel.channels.servicechannelproxy.invoke(imessage message) 

would have idea on fix problem?

thanks, camille.

i guessing service connecting has problem , responding html error page. might 404 page not found or 503 service unavailable or 500 internal server error.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -