When I try to launch my console application from my web application on my local machine it works perfect, but when I try to do it on hosting server after publish I get "Access is denied"
error.
This is the code where I call the console application, in case of that if you want.
try
{
ProcessStartInfo startinfo = new ProcessStartInfo();
startinfo.FileName = Server.MapPath("~/ConsoleApplications/WebConsol.exe");
startinfo.CreateNoWindow = true;
startinfo.UseShellExecute = true;
Process myProcess = Process.Start(startinfo);
}
catch (Exception ex)
{
Response.Write(ex.Message);
if (ex.InnerException != null)
{
Response.Write(ex.InnerException);
}
}
How can I give permission to the console application in order to avoid "Access is denied"
error? Do I need to to it in my project or is it about web hosting server?
Note: I want to launch the console application to use as TCP server to implement a tcp listener.
Edit: My hosting provider is Arvixe.