Issue:
While trying to submit (or) in onload of the workflow if system throws an error as in the screen shot below :

Error Source :errorhandler3
Description :Permission denied

Description:
    If custom script page has been called in definition, we will be giving only the path in which the script is present(Eg: custom\training\wfSCRIPT\script). The path doesn't mention the file name. Only one .vbs or .cs file can be present in that path. If multiple code files are present, that results in this particular error.


Resolution:
Make sure that there is only one file in the path mentioned in workflow for custom script. If there is more than one, take action accordingly to put only one file in that path.