Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WinForms/C#/WebView2 app built for x86 architecture fails package validation because WebView2Loader.dll is x64. #2718

Closed
kathdeas opened this issue Aug 25, 2022 · 3 comments
Assignees
Labels
bug Something isn't working stale issues that have dropped off in communication over a month.

Comments

@kathdeas
Copy link

Description
WinForms/C#/WebView2 app built for x86 architecture fails package validation because WebView2Loader.dll is x64.

Version

SDK: Microsoft.Web.Webview2 1.0.1293.44.
Runtime: .NET 4.7.2
Framework: WinForms, C#
OS: Target Win7-11, x86

Repro Steps

Follow this example to the letter: https://docs.microsoft.com/en-us/microsoft-edge/webview2/get-started/winforms.
Build for x86 architecture.

Add a packager (desktop bridge) to package for the store.

Package fails store validation because:

"File WebView2Loader.dll is designed only for x64 processor type; App package manifest declares 'ProcessorArchitecture' as x86"

@kathdeas kathdeas added the bug Something isn't working label Aug 25, 2022
@kathdeas
Copy link
Author

kathdeas commented Sep 6, 2022

We have also followed this example to create a WPF app https://docs.microsoft.com/en-us/microsoft-edge/webview2/get-started/wpf

We added a packager (desktop bridge) to package for store (x86 build) and again failed validation with the message:

"File WebView2Loader.dll is designed only for x64 processor type; App package manifest declares 'ProcessorArchitecture' as x86"

Our target is still WinForms.

@oggy22
Copy link
Member

oggy22 commented Feb 8, 2023

Hi @kathdeas! Sorry for late reply.

It may be due to the fact that you are using desktop bridge. Can you please provide details on how you are using desktop bridge? Also does the app work before using the desktop bridge?

@oggy22 oggy22 assigned novac42 and unassigned oggy22 Feb 9, 2023
@novac42 novac42 added the stale issues that have dropped off in communication over a month. label Aug 30, 2023
@novac42
Copy link
Contributor

novac42 commented Aug 30, 2023

Closing the issue as the communication has been dropped for a long time. Please reopen the issue if the problem still exists in latest stable runtime/SDK.

@novac42 novac42 closed this as not planned Won't fix, can't repro, duplicate, stale Aug 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale issues that have dropped off in communication over a month.
Projects
None yet
Development

No branches or pull requests

4 participants