Support Anfrage: Support for WebView2 Runtime

Beschreibung

We have a Hybrid Windows Form application which utilizes the WebBrowser common control to display HTML forms. We are updating the application with the new WebView2 control and runtime. The WebBrowser control used the IE7 engine. The WebView2 control uses the latest Edge Chromium engine. The WebView2 Runtime is a redistributable runtime and serves as the underlying (or backing) web platform for WebView2 apps. The concept is similar to Visual C++ or the .NET Runtime for C++/.NET apps. The application works on the Kiosk machine as Administrator. The WebView2 Runtime has been installed on a per-machine basis, but the application never gets to the Navigation Completed stage. I verified the C:\Program Files (x86)\Microsoft\EdgeWebView was provided Read and Execute rights using the System Security Manager. Are there additional changes needed that will allow this runtime to be executed?

Antwort: (3)

Re: Support for WebView2 Runtime 02.09.2022 20:16
Hello,

Thank you for your inquiry. SiteKiosk 9.6 is no longer supported. It seems, you are trying to get your application launched by SiteKiosk. If so, it should be launchable unless there are a few factors to consider:

1. SiteKiosk window management and/or SiteKiosk user rules - You can check this FAQ article to see if it applies to you. - https://www.sitekiosk.com/web/CustomerSupportCenter/ArticleDetails.aspx?ArticleID=25533

2. Environmental issue due to shell replacement - SiteKiosk replaces shell "explorer.exe" during runtime, so starting your applications may not work as expected. You can use our RunHelper tool in this case. - https://devblog.provisio.com/post/2021/06/30/Using-the-RunHelper-Tool-to-Start-Applications.aspx

Please let me know if this worked for you. For sensitive details, you can email US Support: https://www.sitekiosk.com/contact/

Best regards,
Andre.
Re: Support for WebView2 Runtime 06.09.2022 21:00
FAQ: SiteKiosk and external applications
Suggestion 1. Windows & Dialog Management: We have checked the logs and there are no SiteKiosk\Notifications of Windows being closed. Our application is writing to the Windows Application Event Log as usual, so we know the application is running.
Suggestion 2. Access rights of the SiteKiosk user: As stated before the Read and Execute rights were granted to the runtime folder. C:\Program Files (x86)\Microsoft\EdgeWebView. The application is launching and the application window is presented, but the WebView2 Object is never rendered and the application never reaches the Navigation Completed stage.

Found the real issue is with the WebVew2 User Data Folders (UDF) file. The UDF used by a WebView2 control defaults to the location of the EXE.

For example, if you ran D:\WebView2App\WebView2.exe, a UDF folder would be created: D:\WebView2App\WebView2.exe.WebView2\.

The SiteKiosk restricted user had Read and Write to our EXE folder location, but was modified temporarily to give Full rights to this folder and the application started working, rendering content and performing the navigation completed method. This may force additional changes for us to modify the default UDF location for the application to a stand alone folder or the SiteKiosk/Public user folders, so that we can give Full Access to the SiteKiosk restricted user. We will also need to clear the UDF browsing data when the application is completed.

For those interested in the WebView2 and UDF details:
https://docs.microsoft.com/en-us/microsoft-edge/webview2/ and
https://docs.microsoft.com/en-us/microsoft-edge/webview2/concepts/user-data-folder?tabs=win32
Re: Support for WebView2 Runtime 06.09.2022 21:35
Hello,

Thank you for the update. When creating your own applications, it is important to note the file permissions needed depending on the user account being used. Testing Start Once versus Auto Start modes would let you see the difference. The Public folder is quite neutral for file operations and is traditionally used by many software.

Making changes to the restricted user may require some of these steps: https://www.sitekiosk.com/web/CustomerSupportCenter/ArticleDetails.aspx?ArticleID=5826

Thank you for sharing!
Andre.
Mein Konto
Anmelden
Sprache (Tickets):