If unable to upload Embedded File larger then 5MB

Scenario:

Unable to upload Embedded File larger than 4MB via RI and/or Dataportal and/or WBI.
Global Setting’s Maximum Embedded File Size has been confirmed set AND saved to 50
The error may or may not say “Maximum request length exceeded”

Solution:

  1. Have all users out of their RI / Dataportal / WBIconnection (because the connection may get dropped when settings are updated, so best to be safe than sorry)

  2. On the server where your IIS and RI / Dataportal / WBI web sites are running, move to the AyaNova program folder that the application with the issue you are using
    (dataportal default usually is C:\Program Files\Ground Zero Tech-Works Inc\AyaNova unless are a hosting company or have multiple AyaNova databases and folder locations
    RI default is usually C:\Program Files\Ground Zero Tech-Works Inc\AyaNova RI
    WBI default is usually C:\Program Files\Ground Zero Tech-Works Inc\AyaNova WBI )

  3. Make a backup of the existing web.config file that is in the folder so in event of an issue in editing, you can restore to the original

  4. use NotePad to open the web.config file

  5. Your web.config’s httpRuntime statement needs to include below:

<system.web>
<httpRuntime maxRequestLength=“50000” executionTimeout=“3600”/>
</system.web>

So as your web.config may or may not have this command already, open your web.config file in your Notepad, scroll down and find the existing [i]<system.web> [/]section
Scroll further in that section to find any existing <httpRuntime… command and edit it further to include maxRequestLength=“50000” executionTimeout=“3600”

For example, if your RI web.config has the


<system.web>
<globalization culture=“auto:en-US” />
<httpRuntime requestValidationMode=“2.0”/>
<compilation debug=“true” targetFramework=“4.0” />
<authentication mode=“Forms”>
<forms loginUrl="~/Account/Login" timeout=“2880” />
</authentication>
<pages>
<namespaces>
<add namespace=“System.Web.Helpers” />
<add namespace=“System.Web.Mvc” />

then edit so instead is


<system.web>
<globalization culture=“auto:en-US” />
[b] <httpRuntime requestValidationMode=“2.0” maxRequestLength=“50000”

executionTimeout=“3600” />[/b]
<compilation debug=“true” targetFramework=“4.0” />
<authentication mode=“Forms”>
<forms loginUrl="~/Account/Login" timeout=“2880” />
</authentication>
<pages>
<namespaces>
<add namespace=“System.Web.Helpers” />
<add namespace=“System.Web.Mvc” />

  1. Save the file (this automatically causes a restart of your application

  2. Now log in via your RI connection and confirm can now upload files larger than 4MB

If you receive an error running RI after doing the above, return your web.config to the original, restart the site again, and confirm can connect again. Then redo your steps again, as may have been an error when you edited your web.config