The document format is not recognized (the content type is 'text/html; charset=UTF-8')-404 Internal Server Error RRS feed

  • Question

  • Cannot obtain Metadata from https://server-uat:8090/service.svc.
    If this is a Windows (R) Communication Foundation service to which you have access, please check that you have enabled metadata publishing at the specified address. 
    For help enabling metadata publishing, please refer to the MSDN documentation at
    WS-Metadata Exchange Error    URI: https://server-uat:8090/service.svc
    Metadata contains a reference that cannot be resolved: ''.    
    There was no endpoint listening at
    that could accept the message. This is often caused by an incorrect address or SOAP action. 

    See Inner Exception, if present, for more details.    
    The remote server returned an error: (404) Not Found.HTTP GET Error    URI: https://server-uat:8090/service.svc

    The document at the url https://server-uat:8090/service.svc was not recognized as a known document type.The error message from each known type may help you fix the problem:-

     Report from 'https://server-uat:8090/service.svc' is 'The document format is not recognized (the content type is 'text/html; charset=UTF-8').'.- 

    The remote name could not be resolved: ' **********'- Report from 'WSDL Document' is 'The document format is not recognized (the content type is 'text/html; charset=UTF-8').'.- 
    Report from 'XML Schema' is 'The document format is not recognized (the content type is 'text/html; charset=UTF-8').'.

    This is the error what i get when i try to add the service to wcf test client.What is the reason for this error.How to get rid of this error.

    According to my knowledge i guess the client couldn't find the requested action in the server.Do i need to change in web.config??

    Monday, December 21, 2015 6:23 PM


  • Hi Tough,

    According to this case, I suggest you need to enter the metadata URL to browser, if we can

    get the metadata via browser. That means we can add the service reference via that

    metadata. If not, perhaps we can try ping the server-side which generate The metadata.

    If you can’t connect to the server, you need to check the internet or check the

    domain account.

    Also, we can set the trace file in web.config file for get more information.

    Configuring Tracing

    Here is a link with the same scenario which you can refer.

    WCF - The document format is not recognized (the content type is 'text/html; charset=UTF-8').
    This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.

    Best Regards,

    Wanjun Dong

    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. Click HERE to participate the survey.

    Wednesday, December 23, 2015 6:01 AM