Results 1 to 3 of 3

Thread: Webview2 Deployment

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jul 2011
    Posts
    25

    Webview2 Deployment

    Hi all,

    I recently converted a VB.net (VS 2022) Desktop Application from a WebBrowser control to a WebView2 Control. I have everything working just as I would like. When I create an installer and include all of the dependencies then install my application, the application will not display the form that has the WebView2 control on it and I get this error...

    Microsoft.Web.WebView2.WinForms, Version=1.0.4071.0, Culture=neutral, PublicKeyToken=2a8ab48044d2601e' or one of its dependencies. The system cannot find the file specified.

    When I look up this error, it tells me I am missing a dependency, but I have created a setup and included all of the dependencies. I have also tried to install the Evergreen version of the WebView2 files and that installer tells me all the WebView2 dependencies are already installed on my PC.

    Does anyone have a suggestion?

    Thank you.
    Last edited by CWCWOOD; Yesterday at 08:13 AM.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: Webview2 Deployment

    How exactly did you create the installer? If you used a VS Setup project, the following link is directly relevant:

    https://learn.microsoft.com/en-us/mi...nstallersample

    I suspect that your issue relates to point 7, but that's an educated guess. ClickOnce allows you to add prerequisites in basically the same way and third-party installer tools will have something similar.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jul 2011
    Posts
    25

    Re: Webview2 Deployment

    Quote Originally Posted by jmcilhinney View Post
    How exactly did you create the installer? If you used a VS Setup project, the following link is directly relevant:

    https://learn.microsoft.com/en-us/mi...nstallersample

    I suspect that your issue relates to point 7, but that's an educated guess. ClickOnce allows you to add prerequisites in basically the same way and third-party installer tools will have something similar.
    Thank you for the reply. I did create a setup application in VB.Net. Originally I did not use the method you suggested to add the prerequisites to my setup but used a method the you right click on the "Application Folder" and select "Add/Project Output and include "Primary Output", "Localized resources" and "Content Files" which seems to include more files than the article you suggested. I did try the method the article you pointed out and recompiled my setup, but I still get the same error message and the WebView2 control is still not displayed on my dialog.

    Again, thank you for the reply.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width