WCF maxReceivedMessageSize not being read from config

后端 未结 3 1871
失恋的感觉
失恋的感觉 2020-12-15 20:43

I have a the following server side app.config for a WCF service:

  
    
      
        

        
3条回答
  •  轮回少年
    2020-12-15 21:22

    There's more settings :-) Try "maxBufferPoolSize" and "maxBufferSize" on the tag.

    But the biggest problem is: your endpoint does not reference that binding configuration!

    
    

    You need to add a reference to it so that it gets useful - just calling it "default" doesn't work.....

    
    

    You're ahead of your times ;-) In WCF 4 (with .NET 4.0 - sometime later this year 2009), you'll be able to define "default binding configurations" without having to explicitly name and reference them - but for now, you need to create a link between your endpoint and its binding and any binding (or behavior) configuration you have!

    Marc

提交回复
热议问题