Here when task is failed in Script Task, I always get a result as "Error: The script returned a failure result" in the Progress/Execution Result Tab, which I am unable to identify what error had occurred. Inside the script task, I have given the code for failed result, as shown :
Dts.TaskResult = (int)ScriptResults.Failure;
How will I identify what error had occurred inside the Script Task ? What should I apply inside the code ?