0
I have developed an SSIS package that uses a fully qualified path for attaching a file to an smtp component. The attachment line looks like this:
Attachment attach = new Attachment("\server\sharedfolder\ssis\processes\labelprinting\LabelsToPrint.xlsx");
But whenever I execute the package on my local I get the following error:
Error: 0x1 at Script Task: Could not find a part of the path 'C:\server\sharedfolder\ssis\processes\labelprinting\LabelsToPrint.xlsx'.
Why is c: being prepended to my attachment which is causing the error?
This used to work until a couple of days ago but without any changes it is failing now.
Any help would be appreciated.