This issue occured when .net 4.0 project is published .net 4.5 environment (like iis over 7.5).
You can fix this bug the way adding config attribute below.
1 2 3 4 5 6 7 8 9 |
<configuration> <appSettings> <add key="wcf:serviceHostingEnvironment:useClassicReadEntityBodyMode" value="true" /> </appSettings> </configuration> |
This issue has been fixed in .net 4.5.1.