Steps completed
1. i have checked through c# coding if iis express is installed or not.
if (IISExpress.IsIISExpress75Installed)
{
string arguments = string.Empty;
string mvcSampleBrowser = GetStartUrl(true);
arguments = string.Format("http://localhost:" + IISExpress.IISPortNo + "/{0}", GetStartUrl(true));
StartProcess(StartupMode.IISxpress, arguments);
}
else
{
StartProcess(StartupMode.FileSystem, Studio.CurrentVersion.VersionNumber);
}
2. If IIS Express installed, samples will be hosted in the IIS Express server
private static void StartProcess(StartupMode mode, string arguments)
{
if (mode == StartupMode.IISExpress)
{
Process.Start(arguments);
}
else if (mode == StartupMode.FileSystem)
{
LaunchSampleBrowserMVC lsbasp = new LaunchSampleBrowserMVC(Studio.CurrentVersion.VersionNumber, Studio.CurrentVersion.SamplesPath);
lsbasp.LaunchSampleBrowser();
}
}
The above code didnt help me at all.
How to configure the web samples into IIS Express using c#?
can anyone please help me.
Thanks in advance.

New Topic/Question
Reply




MultiQuote


|