"System.OutOfMemoryException" error while uploading pdf file through browser based form. - InfoPath Dev
in

InfoPath Dev

"System.OutOfMemoryException" error while uploading pdf file through browser based form.

Last post 08-18-2010 05:57 PM by worthit. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 11-24-2008 11:32 PM

    "System.OutOfMemoryException" error while uploading pdf file through browser based form.

    Hi,
    I am getting "System.OutOfMemoryException" error while a uploading pdf file through browser based form into a document library. the size of file is around 30MB and i have already tried to set properties like "max-file-post-size" & "large-file-chunk-size", i would like to add that the form is working great with any other smaller pdf file size. Kindly let me know how to rectify this error. Thanks in advance.

    Thanks | Pankaj | India
  • 11-25-2008 05:46 AM In reply to

    • Shiva
    • Top 25 Contributor
    • Joined on 04-15-2005
    • India
    • Posts 694

    Re: "System.OutOfMemoryException" error while uploading pdf file through browser based form.

    Hi,

    If you attach the files with large size to an attachment, InfoPath automatically gives a warning popup with the message is ‘You have chosen a large file, which will affect the form performance ....'. May be your form is timed out when you adding the large file.

  • 11-28-2008 03:53 AM In reply to

    • dam0kles
    • Not Ranked
      Male
    • Joined on 11-28-2008
    • Cologne
    • Posts 2

    Re: "System.OutOfMemoryException" error while uploading pdf file through browser based form.

    I run in the same trouble. Even if I changed the configuration for InfoPath Forms service on the Share Point Service to 50MB. Also the machines.config is configured to let SharePoint operate with large uploads. Anyway, if it comes to files larger then 10MB I got this error. Would be cool if someone knows a solution to post here :)

    cheers

    ()==(::::::::::::::~
    dam0kles
  • 04-07-2010 04:25 AM In reply to

    Re: "System.OutOfMemoryException" error while uploading pdf file through browser based form.

    I have exactly the same problem. Can anyone help?
  • 07-09-2010 11:12 AM In reply to

    Re: "System.OutOfMemoryException" error while uploading pdf file through browser based form.

    We had similar issues and went through many settings to get large files to upload.  We are using a custom web service to do the upload, so there was an extra setting to update in the web.config file of the web service.  Here are all of the settings we updated to get past the 5 MB limit:

     

    IIS Setting in IIS 7.0: 

    IIS 7.0 Manager

    Go to SharePoint:80 (or Whatever one you are using...)

    Click on ASP (Under IIS Section)

    Double-Click on ‘Request Filtering’

    Click on ‘Edit Feature Settings’ from right side under ‘Actions’

    Check ‘Maximum allowed content length’ to be > 50 MB

    Set to = “53000000” 

      

    IIS 7.0 Manager

    Go to SharePoint:80  (We also had to update this setting for our webservice)

    Click on ASP (Under IIS Section)

    Click on ‘Open Feature’ from right side under ‘Actions’

    Expand Limits Properties section

    Check “Maximum Requesting Entity Body Limit:” setting.  Should be larger than largest file size:

    Set to = “53000000”

     

    ASP.NET HTTP Setting:

    Setting I added to web.config of webservice for 50MB limit and increase the time out:

    <system.web>
    <httpRuntime executionTimeout="300" maxRequestLength="51200"/>

     

    InfoPath Specific Setting:

    SharePoint Central Admin -> Application Management

    Click on "Configure InfoPath Forms Services" under “InfoPath Forms Services “

     

    Check the “Maximum size of form session state”.  It should be set to allow for large file attachments – 50 MB or larger.

    Set to = "53000"

     

     

    I hope this helps someone else. 

     

  • 08-18-2010 05:57 PM In reply to

    Re: "System.OutOfMemoryException" error while uploading pdf file through browser based form.

    Hi, did anyone ever get this resolved? I'm experiencing the exact problem. Although, it seems to be more of a total size of files issue. For example, I can upload the first 12MB file but then the second one fails. We've already ajusted the settings in Central Admin. 

Page 1 of 1 (6 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.