CSLA支持大文件上传时web服务器端web.cong配置
来源:互联网 发布:如何开一家淘宝店铺 编辑:程序博客网 时间:2024/04/28 10:42
解决CSLA4.0大文件上传时web服务器端web.cong配置,业务对象采用byte[]数组方式,
当业务对象占用的字节数太大时,需要配置WCF的接收配额,设置最大配额。
此Web.config只支持Silverlight客户端的调用,已经设置成最大,
<system.serviceModel> <bindings> <basicHttpBinding> <binding name="basicHttpBinding_IWcfPortal" maxReceivedMessageSize="2147483647" maxBufferPoolSize="2147483647" maxBufferSize="2147483647"> <readerQuotas maxBytesPerRead="2147483647" maxArrayLength="2147483647" maxStringContentLength="2147483647" maxNameTableCharCount="2147483647" maxDepth="2147483647"/> </binding> </basicHttpBinding> <wsHttpBinding> <binding name="wsHttpBinding_IWcfPortal" maxReceivedMessageSize="2147483647"> <readerQuotas maxBytesPerRead="2147483647" maxArrayLength="2147483647" maxStringContentLength="2147483647" maxNameTableCharCount="2147483647" maxDepth="2147483647"/> </binding> </wsHttpBinding> </bindings> <behaviors> <serviceBehaviors> <behavior name="WcfPortalBehavior"> <serviceMetadata httpGetEnabled="true"/> <serviceDebug includeExceptionDetailInFaults="true"/> </behavior> </serviceBehaviors> </behaviors> <services> <service behaviorConfiguration="WcfPortalBehavior" name="Csla.Server.Hosts.Silverlight.WcfPortal" > <endpoint address="" binding="basicHttpBinding" contract="Csla.Server.Hosts.Silverlight.IWcfPortal" bindingConfiguration="basicHttpBinding_IWcfPortal"> <identity> <dns value="localhost"/> </identity> </endpoint> <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/> </service> </services> </system.serviceModel>
silverlight端:
ServiceReferences.ClientConfig
<configuration> <system.serviceModel> <bindings> <basicHttpBinding> <binding name="BasicHttpBinding_IWcfPortal" maxBufferSize="10000000" maxReceivedMessageSize="10000000" receiveTimeout="00:10:00" sendTimeout="00:10:00" openTimeout="00:10:00" closeTimeout="00:10:00"> </binding> </basicHttpBinding> </bindings> <client> <endpoint address="http://localhost:1431/WcfPortal.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IWcfPortal" contract="WcfPortal.IWcfPortal" name="BasicHttpBinding_IWcfPortal" /> </client> </system.serviceModel></configuration>
- CSLA支持大文件上传时web服务器端web.cong配置
- Web.config配置大文件上传
- web上传大文件的配置
- Web大文件上传
- Brettle.Web.NeatUpload.dll支持的大文件上传
- Brettle.Web.NeatUpload.dll支持的大文件上传
- Brettle.Web.NeatUpload.dll支持的大文件上传
- 在web.config中配置实现可以上传大文件
- NeatUpload 网络上传大文件的web.config配置问题
- NeatUpload 网络上传大文件的web.config配置问题
- web文件另存为 服务器端
- web 文件上传 续 在服务器端判别类型 欢迎拍砖!
- java web获取上传的文件在服务器端的路径
- WEB大文件上传几个组件了解
- Web Service 分段上传大文件
- web项目要求浏览器上传大文件
- Bestcomy.Web.Controls.Upload 组件支持多文件上传
- Web支持可暂停的超大文件上传
- 监听器Listener应用举例
- DevEXpress中的GridControl 的使用方法
- 用Emacs MUSE生成HTML报告时包含数学公式
- 【9.8】
- 内容页响应母版页控件的事件
- CSLA支持大文件上传时web服务器端web.cong配置
- string小code
- 待机、睡眠、休眠的区别
- 了解NSTimer
- RCU机制
- 试用 visual studio 2012 , 夜间主题用起来确实很帅气啊...
- 高性能WEB开发 - web性能测试工具推荐
- 验证简单邮箱并提交到后台,验证邮箱不通过则按钮是不可以用(disabled)
- HDU 1596 find the safest road