I have deployed MVC application in IIS, and from this MVC application i want to open console app. so that is not possible due to IIS security .
Now i have create one package installer add added console application exe in Application and decalared protocol of package and i have installed that package on my pc and i am able to see the protocol.
now in MVC controller i am writing code to open protocol
Uri uri = new Uri("myprotocol:");
var psi = new ProcessStartInfo();
psi.UseShellExecute = true;
psi.FileName = uri.ToString();
Process.Start(psi);
but i am getting below exception -
System.Exception: A specified logon session does not exist. It may already have been terminated
---> System.ComponentModel.Win32Exception: A specified logon session does not exist. It may already have been terminated
is there any solution on this.
if i replace console app to UWP that is working fine for me but i want Winform OR console App but in both not able to open from IIS.