web service parameter size limit

A

androger

Hi,


I have a web service that takes a xmldocument as
parameter, works great for samller file but when the size
of the document is about 5 MB, I get this error:

The underlying connection was closed: An unexpected error
occurred on a receive.

How do I set my webservice to accept bigger files? or I
have to make the change in the client(written in C#)?
 
M

Michael Pearson

You might need to look into DIME attachment's to handle larger files.

Michael
 
C

Catalin Hatmanu

in machine.config file is an attribute named maxRequestLength . Default
value is 4096 KB . Modify it to suit your needs
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,817
Latest member
DicWeils

Latest Threads

Top