All Answers

All Answers » Re: Where is Wisej.HostService.exe? » Comments for "Re: Where is Wisej.HostService.exe?"
  • Darren
    Hi Luca, Thanks for this. I’ve plopped it into the app. directory, run it via command line (localhost:4111 in my case) and then in IE I browse localhost:4111 and indeed my app. appears! How does localhost:4111 know to launch my app!? Is it because the server .exe will launch whatever app. is in the same directory as it? Could I have a similar .exe to demonstrate the standalone too? Thank you!
  • Luca (ITG)
    It launches Default.html as defined in web.config.
  • Luca (ITG)
    Here is Wisej.Application.exe. Copy it to the root (same level as /bin). This one you can simply launch as-is. It runs your wisej app as a desktop app. It uses IE. The version using Chrome is over 120MB because it embeds chromium.
  • Darren
    Hi Luca, So the .exe is preprogrammed to launch Default.html in the same directory? But you can change the launching .html if you need to? Thanks
  • Darren
    Luca, out of interest – why would one choose Chromium over IE (or vice versa)? I.e. what are the advantages of choosing either? On the face of it, I.e. seems the most sensible choice because of the file size difference.
  • Darren
    Sorry, another question… How do you know which (I.e. / chrome) to use!? What if you choose I.e. but a destination pc doesn’t have I.e. installed!? How do you accommodate this?
  • Luca (ITG)
    The exe launched the URL requested by the browser, just like IIS. If nothing is specified, then it launches the default document defined in web.config. For the standalone exe, the IE version uses the installed IE configured to run at its maximum supported version. When running the chromium version it runs the embedded chromium (it cannot use the installed chrome), which now is 55.0.0.0 I believe. But you can update it easily to the latest (another reason why it’s all provided as open source). I’d select IE for simple Wisej apps and Chromium if you need better performance.
  • darren logan
    Hi Luca, I’ve had both self hosted and stand-alone working – thank you. Quick questions regarding stand-alone: 1/ I can change icon & splash image, etc. of the host window, but as soon as the app. window loads, the host window loses it’s backcolour and, if present, image – and ends up plain white. Is it possible to retain backcolour or image of the host window? 2/ Is it possible to communicate between controls on the host window and controls on the inner app.? (if so – how?) Cheers
  • Luca (ITG)
    Once the app is loaded the background color is the one set in the app. The splash is gone. You can either set a MainPage or change the theme color for the “root” appearance key or set the color of the element in Default.html. And yes it’s possible to communicate between the frame and the inner wisej web app by running javascript from the host and handling events. You can also set arguments to the URL used to launch the to pass values one way to the app.
  • Darren
    Hi Luca, I haven’t looked at the theme aspect yet and don’t know what a “route appearance key” is. I’ll come back to this after exploring other areas, but it’s good to know for the future. I wrote a lot of javascript on one project about 15 years ago but haven’t touched it since. I wouldn’t know where to start on this, but again – good to know. Btw, perhaps slightly off topic here, and probably a ridiculous question, but can a wisej web app. be hosted by a hosting company like a regular website? If so, what criteria must the hosting company meet to do so? (I ask this because I recall that not all companies used to be able to host asp.net sites) Thank you!
  • Luca (ITG)
    In Default.html set <body style=”background-color:green”> and it should keep the color if you only use windows in the wisej app. If you use a page it always fills the browser. Wisej apps can be hosted anywhere that can run IIS and give full trust to the apps. We tried on Amazon AWS, Microsoft Azure Web Site (deployed from VS directly), and also used the cheapest possible Windows shared account at GoDaddy.com to make sure. Probably early 2019 we’ll be able to deploy on Linux as well.
  • Darren
    Ok thanks. I’m now wondering whether I could integrate a wisej app into our existing company website? I’m not sure where our site is hosted but it might be in-house as I know we manage it. I’ll ask tomorrow at work. What I’m thinking is adding some cool interactive stuff, like live temperature / humidity readings or perhaps a calculator, or chartjs… something along those lines. Trouble is I’m not sure what questions to ask our IT department on how to achieve this! Cheers Darren