Problem running interactive-auth example on native Win11 with msys2 #492
Replies: 1 comment 2 replies
-
Hey Andy, this is a weird one. Just running regular Windows 11 should work with no issue. I am not sure whether its an issue with your webview or something else. I tried looking up that error and there may be multple reasons why you would get that from what I gather. But one thing im concerned about is that the tao/wry dependencies could need updating due to a bug. So, could you possibly try first doing a If not, since you have cloned the repo locally you can see if the latest versions of tao and wry are being used here: graph-rs-sdk/graph-oauth/Cargo.toml Line 35 in 804467c and graph-rs-sdk/graph-oauth/Cargo.toml Line 38 in 804467c Update those to the latest version and try to see if that works. They tend to update those more than I publish a new version of this crate so they may have put a fix in. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I'm relatively new to Rust (especially Rust on Win11) and not overly familiar with MS Graph API, so this might be a silly question...
How should I run the "interactive auth" example?
I'm using a Win11 Intel based laptop with Rust 1.80.1 (installed using rustup-init.exe) and the msys2 toolchain, aiming at using a "native" windows platform (rather than WSL2).
I've cloned the git repo for this project.
Running cargo build from a dos console runs ok :)
I'm assuming that to run the interactive auth example I should do:
graph-rs-sdk>cargo run --features="interactive-auth" --example interactive_auth
When I run this, cargo reports:
but nothing seems to happen...
Running
target\debug\examples\interactive_auth.exe
directly from the command line shows a dialog box with an error message:"The code execution cannot proceed because WebView2Loader.dll was not found. Reinstalling the program may fix this problem."
Looks like WebView2Loader.dll has been built in:
I tried copying the x64 dll into target\debug\examples (which is where interactive_auth.exe got built) but that just made the program fail silently.
Any suggestions on how to get this working would be most welcome.
Thanks, Andy
Beta Was this translation helpful? Give feedback.
All reactions