Run the web project automatically in browser after deployed the project in IIS Express
i have deployed a web project in IIS Express using the below coding.
Process process;
IISExpress(string args)
{
this.process = new Process();
ProcessStartInfo psi = new ProcessStartInfo();
psi.FileName = @"C:\Program Files (x86)\IIS Express\iisexpress";
psi.Arguments = args;
psi.UseShellExecute = false;
psi.RedirectStandardOutput = true;
process.StartInfo = psi;
process.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
process.StartInfo.CreateNoWindow = true;
process.Start();
}
public static IISExpress Start(string args)
{
return new IISExpress(args);
}
After deployment of my project in IIS Express, i want to run the project in the browser using the link generated in IIS Express(say http://localhost:13356) using c# coding. i have tried the following code. but no use.
IISExpress sample = IISExpress.Start("/bindings.[protocol='http',bindingInformation='*:8063:localhost'] ");
How to run the samples in browser using IIS Express(in c# code only not by manually click the link in the system tray).
Also, i can able to run the samples in browser even after close the visual studio.
can any one help on this.