Attachment Size - Add Attachment in SOAP API

1370
2
Jump to solution
06-19-2012 05:42 AM
AlaaB__Rasheed
New Contributor
Hello,

I am using the SOAP API inside a Silverlight application. When I use the Method "AddAttachmentAsync" an error will be returned to me in the callback event "AddAttachmentCompleted" if the file size is more than 3MB. Is there any way to have bigger size for the attachment ? I'm investigating the IIS configuration now, Is this right or should this be done in Workflow Manager itself.

Thanks & Regards.
0 Kudos
1 Solution

Accepted Solutions
RaghavendraSunku
New Contributor III
Hello,

Yes, there is a setting that you need. It is on the IIS side. Go to Inetput\wwwroot\arcgis\services folder on your IIS machine. Open the web.config file in that folder for editing. Within the system.web tag, add the httpRuntime node with maxRequestLength setting as follows:

<system.web>
<httpRuntime maxRequestLength=10240" />

The value of 10240 will allow upto 10 MB. Increase it further for larger attachments. Save the web.config file and restart IIS.

Thanks,
Raghu

View solution in original post

0 Kudos
2 Replies
RaghavendraSunku
New Contributor III
Hello,

Yes, there is a setting that you need. It is on the IIS side. Go to Inetput\wwwroot\arcgis\services folder on your IIS machine. Open the web.config file in that folder for editing. Within the system.web tag, add the httpRuntime node with maxRequestLength setting as follows:

<system.web>
<httpRuntime maxRequestLength=10240" />

The value of 10240 will allow upto 10 MB. Increase it further for larger attachments. Save the web.config file and restart IIS.

Thanks,
Raghu
0 Kudos
AlaaB__Rasheed
New Contributor
Thanks for your support, it worked 😄
0 Kudos