Link to home
Start Free TrialLog in
Avatar of AIBMass
AIBMass

asked on

How to set (and why) the maximum message size quota

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?
ASKER CERTIFIED SOLUTION
Avatar of Meir Rivkin
Meir Rivkin
Flag of Israel image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial