February 26, 2014
Question:
"HTTP status 404: Not Found" error when saving or closing a large experiment
Answer:
Sometimes, experiments containing large files cannot be saved:
-------------------------
Error Saving Contents
-------------------------
Sorry, while saving experiment
"XXXXXX-XXX", an error occurred on the business tier: The request
failed with HTTP status 404: Not Found.
-------------------------
Some experiments can be saved, but Sign and Close fails after clicking
on "Submit" (rendering process goes through without a problem):
"Sorry, while submitting document,
while submitting document, The request failed with HTTP status 404: Not
Found."
SOLUTION:
If you have IIS 7 or higher on your Application Server, please check the
following two files on that machine:
a. C:\Program
Files\CambridgeSoft\E-Notebook 12.1\Web.config (for saving)
b. C:\Program Files\CambridgeSoft\CsDocStore\Web.config (for closing)
In those web.config files,
maxRequestLength
indicates the maximum request size supported by ASP.NET. (Please find
more about this parameter at
http://www.cambridgesoft.com/support/EnterpriseSupport/KnowledgeBase/FAQ/details/Default.aspx?TechNote=1040.)
On the other hand,
maxAllowedContentLength
(if not present, the default is 30 MB) specifies the maximum length of
content in a request supported by IIS 7. So you need to set both (to
e.g. 100 MB) in order to upload large files: the smaller one "takes
priority". If your web.config files
have
maxRequestLength="102400" (in kilobytes, i.e. 100 MB), you also
need to specify
maxAllowedContentLength="104857600"
(in bytes, i.e. 100 MB).
You can introduce the maxAllowedContentLength parameter into the
system.webServer settings at the end of the web.config file. With that
change in place, the last part (in the system.webServer settings) will
look like:
a. EXAMPLE for "..\E-Notebook
12.1\Web.config" -
<system.webServer>
<handlers accessPolicy="Read, Script" />
<directoryBrowse enabled="false" />
<defaultDocument>
<files>
<clear />
<add value="ENService.asmx" />
</files>
</defaultDocument>
<httpErrors>
<clear />
</httpErrors>
<security>
<requestFiltering>
<requestLimits
maxAllowedContentLength="104857600" />
</requestFiltering>
</security>
</system.webServer>
b. EXAMPLE for
"..\CsDocStore\Web.config" -
<system.webServer>
<handlers accessPolicy="Read, Script" />
<directoryBrowse enabled="false" />
<defaultDocument>
<files>
<clear />
<add value="CSDocStore.asmx" />
</files>
</defaultDocument>
<httpErrors>
<clear />
</httpErrors>
<security>
<requestFiltering>
<requestLimits
maxAllowedContentLength="104857600" />
</requestFiltering>
</security>
</system.webServer>
Make sure no one is using applications to avoid data loss, then reset IIS.
Please backup your original web.config files, and restore those if any
issues.