MicrosoftEdge / WebView2Feedback

Feedback and discussions about Microsoft Edge WebView2
https://aka.ms/webview2
452 stars 55 forks source link

Set userdata folder in "localappdata" and run an appication as elevated and it fails to launch #3128

Open namilantu opened 1 year ago

namilantu commented 1 year ago

A normal user(not admin) login into a machine and launch an application with webview2 and it fails to initialize the userdata folder. The user data folder is set in "localAppdata" folder. The application will run as admin(a UAC popup will show). The errror is access denied for the data folder(when the application is elevated as admin, the user data folder changes to the administrator's data folder)

AB#43072350

jasonstephen15 commented 1 year ago

Hi @namilantu, I could use some more information about your app. Please let me know what windows version, runtime number, app type (uwp vs win32 vs .net). If this is UWP, it could be that the user data folder you set, might be outside app container bounds.

namilantu commented 1 year ago

Hi @jasonstephen15 , my windows version is Windows 10 Enterprise 21H2. This is an application based on .net framework.4.7.1. This is a win32 wpf application.

namilantu commented 1 year ago

webview runtime is 1.0.1462.37