當嘗試一個小的FileStream傳遞給我WCF服務我得到「超時不支持此流」的錯誤。任何人都可以看到我做錯了什麼?傳遞一個FileStream到WCF拋出「超時不支持此流」異常
接口:
[OperationContract]
List<SystemClass> ReadExcelFile(System.IO.FileStream stream);
的Web.Config
<bindings>
<basicHttpBinding>
<binding name="streaming" maxReceivedMessageSize="2147483647" transferMode="Streamed">
</binding>
</basicHttpBinding>
</bindings>
<services>
<service name="MISDashboard.wcfService" behaviorConfiguration="">
<endpoint address="" binding="basicHttpBinding" bindingConfiguration="streaming" contract="MISDashboard.wcfService"></endpoint>
</service>
</services>
...
<httpRuntime maxRequestLength="2147483647"/>