Unable to add WCF as service reference RRS feed

  • Question

  • User1909873139 posted

    WCF Service svc?wsdl

    I cannot add this WCF as Service Reference to my project.

    enter image description here

    Here's the details of error occured.

    The document was understood, but it could not be processed.
    - The WSDL document contains links that could not be resolved.
    - There was an error downloading 'http://localhost/xxxxxx/Service1.svc?xsd=xsd0'.
    - The request was aborted: The operation has timed out.
    Metadata contains a reference that cannot be resolved: 'http://localhost/xxxxxx/Service1.svc?wsdl'.
    Content Type application/soap+xml; charset=utf-8 was not supported by service http://localhost/xxxxxx/Service1.svc?wsdl. The client and service bindings may be mismatched.
    The remote server returned an error: (415) Cannot process the message because the content type 'application/soap+xml; charset=utf-8' was not the expected type 'text/xml; charset=utf-8'..
    If the service is defined in the current solution, try building the solution and adding the service reference again.

    Tuesday, May 5, 2020 1:12 PM

All replies

  • User475983607 posted

    This can be a binding or IIS configuration issue.  The community cannot see the code or configuration so there is not much we can do.

    Tuesday, May 5, 2020 2:12 PM
  • User1909873139 posted

    Thanks. How can I show my IIS configuration? laughing

    Tuesday, May 5, 2020 2:45 PM
  • User1535942433 posted

    Hi _IU,

    Accroding to your description,as far as i think,you could check  WCF identity permissions.The identity that is used for the application pool that hosts the WCF service must have full NTFS permissions on the %WINDIR%\temp folder. You could change that permission to the identity (LOCAL SERVICE) on C:\Windows\Temp.

    In IIS,you could click Application Pools -->View Applications-->Advanced Settings-->check identity.


    How can I show my IIS configuration? 

    Do you want to know how to show image of IIS configuration to us?If this,I suggest you could use screenshot or paste images.

    Paste image:

    You could browse to here and paste the link to the thread.

    screenshot tool:


    Best regards,

    Yijing Sun

    Wednesday, May 6, 2020 9:33 AM