I cannot add this WCF as Service Reference to my project.
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.
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.
_IU
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.
ASP.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today. Learn more >
None
0 Points
2 Posts
Unable to add WCF as service reference
May 05, 2020 01:12 PM|_IU|LINK
I cannot add this WCF as Service Reference to my project.
Here's the details of error occured.
All-Star
53711 Points
24042 Posts
Re: Unable to add WCF as service reference
May 05, 2020 02:12 PM|mgebhard|LINK
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.
None
0 Points
2 Posts
Re: Unable to add WCF as service reference
May 05, 2020 02:45 PM|_IU|LINK
Thanks. How can I show my IIS configuration?
Contributor
4050 Points
1574 Posts
Re: Unable to add WCF as service reference
May 06, 2020 09:33 AM|yij sun|LINK
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.
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:
https://www.screentogif.com/downloads.html
Best regards,
Yijing Sun