Issue: A client asked for assistance in resolving a problem where they were unable to import large timecard files.
Resolution: Research found that ISS imposes a 4MB limit on upload files. This same research identified a workaround which allows users to configure the upload size limit.
A Microsoft, MSDB, article discusses the <httpRuntime> Element which supports an override of the 4MB limit on upload files.
In this instance I changed the web.config file with the following custom configuration which changes the limit to 12MB.
<!-- custom configuration change by Denton -->
<httpRuntime maxRequestLength="12000" />
<!-- end of custom -->
Note that the above custom configuration was placed in the <system.web> section of the web.config document which can be found at the following path: C:\Nsl64\emPath\iis
Following is additional information on this subject:
(1) In this instance the error occur when importing timecards. However it could have happened on any import within emPath.

(2) The error message shown on the screen is not very helpful:

(3) However taking the TimecardImport program through debug produces a much more meaningful error as shown below:
An exception of type 'System.Web.HttpException' occurred in System.Web.dll but was not handled in user code
Additional information: Maximum request length exceeded.
(4) Also, there is additional information in the C:\Nsl64\emPath\iis\Logs\now_hr64.log
[ERROR] | nsl.Web.HrHttpApplication.Application_BeginRequest:line 135 | Exception has been thrown by the target of an invocation.
[ERROR] | nsl.Web.HrHttpApplication.Application_BeginRequest:line 136 | couldn't instantiate class nsl.empath.pagehandler.pay.TimecardImport,nsl