Dear All, I am using bellow code to simply open a file from a deployed (IIS 7) version but it seems it doesn't work. I am writting the code in bellow
try
{
string path = "C:\\abc\\CSharpNet.pdf";
Process p = new Process();
Response.Write(path);
Process.Start(path);
}
catch (Exception ex)
{
Response.Write(ex.Message);
}
for this i have tried followings as well in (Web.config)
<identity impersonate="true" userName="PC\username" password="pass"/>
IIS Admin Services in services (Allow services to interact with desktop)
I have also tried to add full control permission for (IIS_USER, NETWORK SERVICES, LOCAL SERVICES) users to the "C:\abc" folder
I have also changed the Pool to run under Local Services
all above didn't help. It only runs perfect from development machine, but once its deployed its not running..
So how can I use Process.Start(filePath) to open/run some batch files?
Thanks,