SandBox
If you use the sandbox "preview", you must specify the file Handler and the SEMS Handler for the sandbox environment. Those Setthings are global to the application.
SettingsHelper.CustomFileHandler = "https://preview.secure-exchanges.com/Handler/ReadFileTob64.ashx";
SettingsHelper.CustomSEMSEndpoint = "https://previewsems.secure-exchanges.com/SEMS_api.asmx";
Warning
PLEASE NOTES THAT THOSES LINES MUST NOT BE PRESENT FOR PRODUCTION