Increase the Default Attachment Size in Helpdesk
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:
- 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.