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

Using WebView2 with Office or VSIX projects fails with default UserDataFolder creation #553

Closed
champnic opened this issue Oct 21, 2020 · 4 comments
Labels
bug Something isn't working tracked We are tracking this work internally.

Comments

@champnic
Copy link
Member

champnic commented Oct 21, 2020

Description

Currently, when WebView2 is launched in an Office add-in or as part of a VSIX project, the default UserDataFolder (if no UserDataFolder path is specified) gets created under "C:\Program Files (x86)...". This causes the WebView2 to fail to initialize because it doesn't have write permissions at that location. The workaround is to specify a separate UserDataFolder, but this is cumbersome and shouldn't be required by default.

Version
SDK: all
Runtime: all
Framework: WPF in Office/Visual Studio contexts
OS: all

Additional context
Relevant GitHub issues:
#195 (comment)
#195 (comment)
#505
https://github.com/MicrosoftEdge/WebView2Feedback/issues?q=is%3Aissue+VSTO+
https://github.com/MicrosoftEdge/WebView2Feedback/issues?q=is%3Aissue+VSIX

@yannduran FYI

AB#29901610

@champnic champnic added bug Something isn't working tracked We are tracking this work internally. labels Oct 21, 2020
@DavidShoe
Copy link
Contributor

We have a fix in active development. No release ETA yet, but we are working it.

@yannduran
Copy link

@DavidShoe

OMG I can't wait to be able to use WebView2 in a VS extension, even for something as basic as displaying web or XML content! I don't need all the bells and whistles.

@champnic
Copy link
Member Author

Please see our update here: #1410 (comment)

@yannduran
Copy link

@DavidShoe , @champnic - so is this going to happen or not? Are we going to be able to use WebView2 out of the box, no extra fiddling in a Visual Studio VSIX extension? Now that VS 2022 has deprecated the internal browser control based on ancient IE, we need this more now than ever!

I couldn't see anything following the link you posted about this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working tracked We are tracking this work internally.
Projects
None yet
Development

No branches or pull requests

3 participants