0

I Use MVC 4 and WCF service.

Here's my viewmodel where i call the service.

The objSwatchClass has a property byte[] of an image.
int updatedSeqNo = objSwatchService.InsertSwatch(objSwatchClass);

Binding in my application's web.config

      <security mode="None">
        <transport clientCredentialType="None" proxyCredentialType="None"
          realm="" />
        <message clientCredentialType="UserName" algorithmSuite="Default" />
      </security>

</binding>

Error when i call the service with byte as parameter Detailed Error

4

1 回答 1

1

您尚未发布完整绑定,但根据错误,您的客户端绑定似乎使用 MTOM,而您的 serevr 绑定不使用(纯文本)。根据您的需要,确保它们与任一设置同步(MTOM 更加优化)。

于 2013-08-23T12:28:19.403 回答