Execute bat file in asp.net localhost -
hi trying execute bat file in asp.net. runs in developer/iis express dosnt in iis. think there permissions. thanks.
system.diagnostics.process myprocess = new system.diagnostics.process(); myprocess.startinfo = new processstartinfo(@"c:\data\myfile.bat"); myprocess.start(); myprocess.close();
check permissions on c:\data\
folder. make sure iis_iusrs
has read , execute permissions.
otherwise if application pool configured run using application pool identity feature "synthesised" account called iis apppool\<pool name>
created on fly used pool identity. in case there synthesised account called iis apppool\defaultapppool
created life time of pool. can add account c:\data\
folder permissions grant access application.
Comments
Post a Comment