Increase the Default Attachment Size in Helpdesk
Created: 23 Jun 2008 | Updated: 23 Jun 2008 | 5 comments
I was trying to set up an e-mail template today with an attachment that was nearly 8MB in size. Upon trying to attach the file, I got an error message: "Maximum request length exceeded."
Details: Application_OnError - Unhandled Exception: System.Web.HttpException: Maximum request length exceeded. at System.Web.HttpRequest.GetEntireRawContent() at System.Web.HttpRequest.GetMultipartContent() at System.Web.HttpRequest.FillInFormCollection() at System.Web.HttpRequest.get_Form() at System.Web.UI.Page.GetCollectionBasedOnMethod() at System.Web.UI.Page.DeterminePostBackMode() at System.Web.UI.Page.ProcessRequestMain()
Upon doing some research, I discovered that the default setting for file attachments in the Helpdesk solution is 4MB.
I also found that you can increase this to meet your needs. Here is what you need to do:
- On your Notification Server, open the web.config file with your favorite text editor.
It is located in \Program Files\Altiris\Helpdesk\AeXHD
- Locate the following line in this file:
</system.web>
- Right above this line, add the following line:
<httpRuntime maxRequestLength="8192"/>
NOTE: the example above would set the file size to 8MB, but you can adjust this number to meet your specific needs. - Save the web.config file.
- Restart IIS.
Now you can add file attachments up to the size you specified.
Blog Entry Filed Under:

The Endpoint Management Community Blog is the perfect place to share short, timely insights including product tips, news and other information relevant to the Endpoint Management community. Any authenticated Connect member can contribute to this blog.
Comments 5 Comments • Jump to latest comment
I ran into this issue a week ago and just made the guys change the size of the document. It'll be important to note this is applicable to files uploaded as KB articles as well.
On a side note it took me a second, but I must say grats to Juicemaster on finding the image for this tip. It made me laugh.
- Matt
I ran into this size limitation too and this article nails it. We implemented this and ramped up the size.
Thanks, solved a mystery bounce-back email.
I'm glad to hear this was more of a universal solution than I originally thought. When I first came across it, I was focused on the specific issue within the e-mail templates.
It's good to know that this resolves similar issues in the KB as well since I'm planning on beginning to use this quite a bit more in the very near future.
Appreciate the feedback.
If this option is not set is there no limit? I cannot find the value in IIS or the web.config.
Would you like to reply?
Login or Register to post your comment.