Microsoft Edge에 문제가 있어서, 이러저러한 방법으로 엣지를 다시 살리긴 했는데, 그때부터 RaiDrive에서 "WebView2 환경 생성에 실패했다"고 에러가 나며, 실행이 안됩니다.
설치와 삭제 후 재설치를 어떻게 해도 이 에러 때문에 결국은 실행이 안됩니다.
windowsdesktop-runtime도 6.0.36과 7.0.16, 8.0.6을 모두 설치하고 다시 설치해도 안됩니다.
실행이 안되면서 나오는 메시지는 다음과 같습니다.
다 음 -
WebView2 environment creation failed:
C:\Users\user\AppData\Local\OpenBoxLab\RaiDrive
Microsoft.Web.WebView2.Core.WebView2RuntimeNotFoundException: Couldn’t find a compatible Webview2 Runtime installation to host WebViews.
지정된 파일을 찾을 수 없습니다. (0x8007002)
다 음 끝 -
예전에는 뭔가 다른 버전을 다운 받아 설치하는 것을 자동으로 하기도 한 것 같은데, 이번에는 아무리해도 그렇게 되지 않네요.
도움 부탁드립니다.
감사합니다.
~
안녕하세요, @Taehoon_Kee 님.
사용하고 계신 윈도우 버전이 어떻게 되는지요?
네, 문제가 있는 윈도우는 Windows 10 Pro 22H2, OS빌드 19045.5247 입니다.
WebView2 다운로드 사이트에서 에버그린 부트스트래퍼를 다운받으신 후, 재설치 해보시기 바랍니다.
https://developer.microsoft.com/ko-kr/microsoft-edge/webview2/?form=MA13LH#download
Edge 브라우저에 문제가 있었다고 하셨으니, Edge도 복구해보시면 좋을 것 같습니다.
답변 감사드립니다.
하지만, Edge는 이미 복구한 상태에서 드린 말씀이었구요.
에버그린 부트스트래퍼로 설치해도 이미 설치가 되었다고 간단하게 나와버리네요. ㅠㅠ
어떻게, 완전히 윈도우를 새로 설치하는 것만 빼고, 이 부분을 새로 설치하는 방법이 없나요? ㅠㅠ
레지스트리를 살펴보는 방법이 있을 것 같습니다.
opened 02:06PM - 26 Apr 23 UTC
bug
Hi all,
i got some situations that i would to debug better, maybe it's bug.
I … have to launch my WebView2-base app from a service with Administrator privileges and it's not possibile, i know. To accomplish that, my application before build the WebView enviroment, check if itself is Administrator and re-launch itself with a less priviliged user ( CreateProcessAsUser API ).
The complete context is:
1) A windows service run in a machine on wich i can interact with command remotly. On that machine a user could be generally be logged or not.
2) A command create my WebView2 app, that being child of the service, that has Administrator privileges
3) App can realize that, and create an identical process but with another well know user ( user that resides on the service machine obv )
4) App run, get some statistic ad network analitycs e close itself
If all this process is executed when a user is logged on the service machne, it completes successfully. But when i got no user logged the api CreateCoreWebView2EnvironmentWithOptions fails with code 0x80070002 (Cannot find the specified file ).
I call CreateCoreWebView2EnvironmentWithOptions whit a custom UserDataFolder but it's an absolute path ad even with nullptr it fails.
I expected trouble with the CreateProcessAsAuser API in that context, but it creates the process fine. What could it be? Which file search the CreateCoreWebView2EnvironmentWithOptions? Can i have some hint on how to debug it? I can't realize why a file or directory can be found when a user logged instead of not.
PS: The fact of carrying out this procedure with a non logged in user was a constraint that I knew I had since the beginning of the project ( about 6 months ago ).
I seem to remember getting it to work but I don't remember the evergreen runtime versions... could something have changed?
**Version**
Browser Version 112.0.1722.48
WebView Version 1.0.1722.45
Framework: Win32
OS: Win10
그러나 Edge, Runtime 등의 숨겨진 정보를 수정하는 것은 부작용(side effect)을 예상하기 힘들어 추천하지 않는 방법입니다. 번거로우시더라도 윈도우를 재설치하는 것이 가장 깔끔할 것 같습니다.
1개의 좋아요
아, 감사합니다. 소개해주신 사이트의 내용중에 언급한 레지스트리 항목을 지운후에, 에버그린 부트스트래퍼로 WebView2 인스톨하고, 그 다음에 재설치에 성공했습니다. 정말 윈도우 재설치 안하고 살려서 다행입니다. 감사합니다!!! ^^
1개의 좋아요