MIB compilation failed due to an IO error

I am running AgenPro version 4.1.1 and after setting the Repository I am trying to compile my custom MIB but getting an error stating “MIB compilation failed due to an IO error: E:\NewMIBRepo\agenpro-mvn-task (Access is denied)”.
I have used agenpro earlier but was not receiving such errors. Can anyone guide me what could be the possible reason for this error?

Thank in advance.

Hi, the error h occurs when either the directory you specified is not readable or does not exist.
The MIB repository path must to point to an empty directory. The path in the error message is bit suspicious:

Yes Thank you. The path mentioned in the error had some files in there. Giving a New path for MIBRepository solved the error.