The remote server returned an error: (405) Method Not Allowed.

The remote server returned an error: (405) Method Not Allowed.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Net.WebException: The remote server returned an error: (405) Method Not Allowed.

WCF服务部署到IIS。

你这个报错是什么环境

可能是WCF服务没有开。

img