How to set (and why) the maximum message size quota
Posted on 2010-03-23
I am trying to use WPF and .NET 3.5 for the first time.
I have two questions:
1. In an existing .NET 2.0 WebService, I have these two lines right off the bat:
Private Share myService as ContactsWebService.Service1 = nothing
myService = New ContactsWebService.Service1
What is the .NET 3.5 version of these statements?
2. I tried
Dim MyService as ContactsWebService.Service1Soap = New ContactsWebService.Service1SoapClient
The compiler was happy, but when I called the first method:
myObject = MyService.mymethod
I get the "maximum size quota for incoming messages (65536) has been exceeded.....use the MaxReceivedMessageSize property on the the appropriate binding element"
Can someone straighten me out?