locked
Error in WCF service RRS feed

  • Question

  • We are facing with WCF service , below error is coming while accesing service in application in stage .From Dev envirionment  environment its working fine :

    wThe content type text/html;
     charset=utf-8 of the response message does not match the content type of the binding (text/xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 1024 bytes of the response were: '<html>     <head>         <title>Runtime Error</title>         <style>          body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}           p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}          b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}          H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }          H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }          pre {font-family:"Lucida Console";font-size: .9em}          .marker {font-weight: bold; color: black;text-decoration: none;}          .version {color: gray;}          .error {margin-bottom: 10px;}          .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }         </style>     </head>      <body bgcolor="white">              <span><H1>Server Error in '/' Application.<hr width=100% size=1 color=silver></H1>              <h2> <i>Runtime Error</i> </h2></span>       '.

    • Changed type Manesh Golekar Friday, May 25, 2012 6:39 AM WCF
    • Moved by Jesse Jiang Tuesday, June 12, 2012 5:54 AM (From:.NET Compact Framework)
    Thursday, May 24, 2012 12:12 PM

Answers

  • You should try the WCF forum.

    NEU_ShieldEdge

    • Proposed as answer by Jesse Jiang Tuesday, June 12, 2012 5:53 AM
    • Marked as answer by Manesh Golekar Wednesday, June 11, 2014 12:52 AM
    Friday, May 25, 2012 7:12 AM