I even tried to run the program from a batch file and that also gave same issue. when i run the batch file independently in command line it works fine
system('D:\Work\Convert.bat')
i get below error
D:\Work>cmd /k D:\Work\ConsoleApplication1.exe
Cannot bind to the target method because its signature or security transparency is not compatible with that of the delegate type.
my bach file something like this(named as Convert.bat)
cmd /k %~dp0ConsoleApplication1.exe
pause