The maximum message size quota for incoming messages (65536) has been exceeded

前端 未结 8 1196
别那么骄傲
别那么骄傲 2020-11-30 04:36

I get this exception while creating scope for few tables all those tables are huge in design


    
        

        
8条回答
  •  伪装坚强ぢ
    2020-11-30 04:59

    For me, the settings in web.config / app.config were ignored. I ended up creating my binding manually, which solved the issue for me:

    var httpBinding = new BasicHttpBinding()
    {
        MaxBufferPoolSize = Int32.MaxValue,
        MaxBufferSize = Int32.MaxValue,
        MaxReceivedMessageSize = Int32.MaxValue,
        ReaderQuotas = new XmlDictionaryReaderQuotas()
        {
            MaxArrayLength = 200000000,
            MaxDepth = 32,
            MaxStringContentLength = 200000000
        }
    };
    

提交回复
热议问题