Developer Portal Community

    We are moving! We are currently migrating our community to the new Bosch Connected Industry Online Portal. The community will be available latest in the new year again, until then it will be in read-only mode. Click here for more information.

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 
    SOLVED

    Mod_HtmlView error

    Mod_HtmlView error

    AlexRodry
    Established Member

    Hello,

    I have added a view with a Mod_HtmlView in Control Plus Studio v5.3.0:

    AlexRodry_0-1643355666704.png

    When I open the view from the HMI I get this error:

    AlexRodry_1-1643355697937.png

    Inside the logfile I can see that one .dll file is missing.

    Does Anybody know how to solve this issue?

    Many thanks.

    Error loading Smart control:
    System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.DllNotFoundException: Unable to load DLL 'WebView2Loader.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
    at Microsoft.Web.WebView2.Core.CoreWebView2Environment.GetAvailableCoreWebView2BrowserVersionString(String browserExecutableFolder, String& versionInfo)
    at Microsoft.Web.WebView2.Core.CoreWebView2Environment.GetAvailableBrowserVersionString(String browserExecutableFolder)
    at Bosch.OpCon.HMI.Modulo.Forms.Mod_HtmlView..ctor()
    --- End of inner exception stack trace ---
    at VisiWinNET.Forms.Internals.SFCLoader.Load(String file, Boolean callEndInit)
    at Bosch.OpCon.HMI.Modulo.Shared.SfcProvider.GetControl(OpconUnit ownerUnit, String name, String& path)

    (...)

    2022-01-27 17:58:46 (A:1589588kB M:20513kB) [Error] <Application>
    Unhandled Non-UI exception occured:
    System.NullReferenceException: Object reference not set to an instance of an object.
    at Bosch.OpCon.HMI.Modulo.Forms.Mod_HtmlView.Dispose(Boolean disposing)
    at System.ComponentModel.Component.Finalize()

    3 REPLIES 3

    nexidator
    Community Moderator
    Community Moderator

    This happens when a necessary program component is not deployed to the target system.

    Please update your target system (IPC) in the Control plus Studio project using the file IPC_V5.3.nxtc. This will update the deployment batches in the Std folder of your project.

    Afterwards, run a deployment of the HMI Standard files in order to copy the missing file to the target system.

    AlexRodry
    Established Member

    Perfect, 

    Now is working, but it requires to install Microsoft WebView2 runtime.

    AlexRodry_0-1643358211609.png

     

    nexidator
    Community Moderator
    Community Moderator

    The WebView2 runtime is included in the latest Nexeed target system image.

    Alternatively, you can download an offline installer at Microsoft, copy it to the target system and install it there. You will also need to install the WebView2 runtime on your development computer if you want the Mod_HtmlView to work when running the HMI locally.

    WebView2 - Microsoft Edge Developer

    (The evergreen standalone installer X64 is the correct one)

    Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist