1



In our wpf application we host the silverlight application to iisexpress , hosting working fine . But when we close the wpf application we don't stop the silverlight application. second time we start wpf application the silverlight application once again hosted in iisexpress as new website .

Is any option to check is silverlight app still on iisexpress and if exits reopen the previously hosted silverlight application .

i tried some links like List all websites in IIS c# It giving some permission error .
Starting and stopping IIS Express programmatically it also not working and the solution need Process ID of the application .In my case i cannot get that .

we are using windows 8 , vs2012 and iisexpress 8(default)

with regards
jophy

Community
  • 1
  • 1
Jophy job
  • 1,523
  • 1
  • 16
  • 22
  • I don't really get it. I understand your problem, but how are you hosting the silverlight app? Via a webbrowser control I assume? – Silvermind Sep 25 '13 at 10:46
  • i adding hosting code : private static Process StartProcess(string filePath, string arguments) { ProcessStartInfo info = new ProcessStartInfo("C:\Program Files\IIS Express\iisexpress.exe", arguments); info.UseShellExecute = true; info.WindowStyle = ProcessWindowStyle.Hidden; return Process.Start(info); } – Jophy job Sep 25 '13 at 11:04

0 Answers0