Click here to Skip to main content
15,884,237 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
i have created web services when i am trying to add service refrence into project that time i am getting following error

XML
The HTML document does not contain Web service discovery information.
Metadata contains a reference that cannot be resolved: 'http://localhost/SecureDox/Scribe/SxFlowWebServices.asmx'.
The content type text/html; charset=utf-8 of the response message does not match the content type of the binding (application/soap+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: '

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>
    SecureDox
</title><link href="../Assets/Styles/login.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        /*
        HTML5 Shiv v3.6.2pre | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed
        Uncompressed source: https://github.com/aFarkas/html5shiv
        */
        (function (l, f) {
            function m() { var a = e.elements; return "string" == typeof a ? a.split(" ") : a } function i(a) { var b = n[a[o]]; b || (b = {}, h++, a[o] = h, n[h] = b); return b } function p(a, b, c) { b || (b = f); if (g) return b.createElement(a); c || (c = i(b)); b = c.cache[a] ? c.cache[a].cloneNode() : r.test(a) ? (c.cache[a] = c.createElem(a)).cloneNode() : c.createElem(a); return b.canHaveChildren && !s.test(a) ? c.frag.appendChild(b) : b } function t(a, b) {
                if (!b.ca'.
If the service is defined in the current solution, try building the solution and adding the service reference again.
Posted

1 solution

In the header of Web.config file.

Be sure that begin with:


It Appear that the response is trying to match with your encoding wrote in your App/webb.

please review if your project is over ISO-8859-1 encoding or UTF-8

Or
check if the WSDL show you this encoding
Collapse | Copy Code

http://localhost:60789/AppService.asmx?WSDL[^]



Other way could be that the Web service App.. is not Configured Properly
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900