我正在使用.NET WCF服務,該服務從另一個.NET應用程序接受JSON數據作爲HTTP Post。將大量JSON數據發佈到WCF服務
當我發佈一個數據量小的一切工作正常(〜可達數據的65KB)
但是當我嘗試後還不止這些,我得到的服務端內部服務器錯誤。
所有指向該服務的服務僅限於接受高達65kb的數據。
我已閱讀有關修改我的配置文件以接受更多數據與maxrequestmessagesize屬性,但我的問題是,我的web.config沒有任何綁定,我可以看到。
以下是我在我的配置文件,涉及到服務
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior>
<!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
<serviceMetadata httpGetEnabled="true"/>
<!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information -->
<serviceDebug includeExceptionDetailInFaults="true"/>
</behavior>
</serviceBehaviors>
</behaviors>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
</system.serviceModel>
我不知道怎麼做才能讓過去那個65金的限制做的 - 任何幫助,將不勝感激。
感謝