Loading WPF WebView from an assembly and accessing WebView1.Process causes MissingManifestResourceException
I'm submitting a...
Bug report (I searched for similar issues and did not find one)
Current behavior
Loading WPF WebView from an assembly and accessing WebView1.Process causes MissingManifestResourceException Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "Microsoft.Toolkit.Win32.UI.Controls.DesignerUI.resources" was correctly embedded or linked into assembly "Microsoft.Toolkit.Wpf.UI.Controls.WebView" at compile time, or that all the satellite assemblies required are loadable and fully signed.'
Expected behavior
No exception
Minimal reproduction of the problem with instructions
See attached. Move the contents of the wpf sample WebView MainWindow into a user control into a new assembly
Environment
< Nuget Package(s):
Package Version(s):
Windows 10 Build Number:
- [ ] Fall Creators Update (16299)
- [ ] April 2018 Update (17134)
- [ ] October 2018 Update (17763)
- [x] Insider Build (build number: )
App min and target version:
- [ ] Fall Creators Update (16299)
- [x] April 2018 Update (17134)
- [ ] October 2018 Update (17763)
- [ ] Insider Build (xxxxx)
Device form factor:
- [x] Desktop
- [ ] Mobile
- [ ] Xbox
- [ ] Surface Hub
- [ ] IoT
Visual Studio
- [x] 2017 (version: )
- [ ] 2017 Preview (version: )
[WpfApp1.zip](https://github.com/windows-toolkit/WindowsCommunityToolkit/files/2611829/WpfApp1.zip)
Hi @meshawn, I just noticed you're running the build 16299 of Windows 10. If you take a look at the prerequisites for the WebView control you'll notice that the minimum build number is 17110. The issue should be resolved once you update to the April 2018 update or later. If the issue is not resolved after updating, please submit a new one.
Hi @kbrons I didn't mark this correctly. I'm running 18282.1000 actually.
I've been trying to work around this, but I don't have a solution yet. My requirements are: 1)Load and unload the control When I unload and call Close(), I cannot create new instances. 2)Share WebViewControlProcess I can't access WebView.Process after creating the first instance. I have tested further and found I can access on ContextIdle, but this is too late.
I just verified this happens in April 17134 and October 1809. Please re-open.
Yes, this reproes even with 1809 update
Is this getting reopened or do I need to re-submit a new issue?
reopening issue. @kbrons, could you verify the issue on insider builds?
Just reproduced it on build 18290 with the attached project.
I guess MissingManifestResourceException means not available yet... It wasn't my favorite thing to do, but I was able to get around this by deferring things until the Process is available at NavigationCompleted. This makes it difficult/messy to share WWAHost.exe. A constructor like WebView(bool shared) or something to tell WebView to deal with it would be nice.
Is Window 10 required on end-user machines or just development machines?
I'm still seeing the issue, I'm on Window 10 Pro, Build 18362
I'm also still seeing this issue (Windows 10 Pro build 18362)