Video Screencast Help
Symantec to Separate Into Two Focused, Industry-Leading Technology Companies. Learn more.
Endpoint Management Community Blog

Increase the Default Attachment Size in Helpdesk

Created: 23 Jun 2008 • Updated: 23 Jun 2008 • 5 comments
johnquinn's picture
0 0 Votes
Login to vote

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:

  1. On your Notification Server, open the web.config file with your favorite text editor.

    It is located in \Program Files\Altiris\Helpdesk\AeXHD

  2. Locate the following line in this file:
    </system.web>
    
    
  3. 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.
  4. Save the web.config file.
  5. Restart IIS.

Now you can add file attachments up to the size you specified.

Comments 5 CommentsJump to latest comment

MBHarmon's picture

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

-1
Login to vote
mboggs's picture

I ran into this size limitation too and this article nails it. We implemented this and ramped up the size.

+1
Login to vote
MajorBrands's picture

Thanks, solved a mystery bounce-back email.

+1
Login to vote
johnquinn's picture

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.

-3
Login to vote
mccarthy.cw's picture

 If this option is not set is there no limit?  I cannot find the value in IIS or the web.config.

-3
Login to vote