Symptoms
Error when using File Attachment control: [file name]/0 bytes/The file could not be uploaded. The network might be down or the file size is larger than the maximum allowed.
Error: Not authorized
Diagnoses
The issue is caused when the Designer and Runtime use different Application Pools in IIS with different User Accounts. The issue occurs when using the form on the Designer/Runtime URL and then using it on the Runtime/Runtime URL, or the other way around. Whichever one is used second will display the error.
Resolution
Reconfigure SmartForms to use the same Application Pool for both Designer and Runtime. Performing an IISRESET is a temporary solution as the issue will occur again when the steps above is repeated.
