Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Cannot invoke on WebView2 Web Browser in its current state

Hi team   I am getting this error "Cannot invoke on WebView2 Web Browser in its current state"   when trying to open any file or work with Power BI. Can anyone please tell me how to fix this?   ...
  • Anonymous's avatar
    Anonymous
    4 years ago

    Hello,

    From looking at the exception, it is the WebView2 browser process which is crashing. We are working with the WebView2 team to figure out the cause for this but it would be nice to have some more information to help investigate. 
    Would it be possible for you to provide the following - 

    1 – the WebView2 crash dumps.
    You will find them under: “C:\Users\<<UserAlias>>\AppData\Local\Microsoft\Power BI Desktop\WebView2\EBWebView\Crashpad\reports”
    Or if you ran desktop as Admin, the under : “C:\Users\<<UserAlias>>\AppData\Local\Microsoft\Power BI Desktop\WebView2Elevated\EBWebView\Crashpad\reports”
    2 - your device Id -You can go to Windows -> settings -> system -> about and see the device id there.

    You can send the information to me at [email protected]
    Workaround: 

    To workaround this issue for now, you can go to File->Options and Settings -> Options -> Preview Features and disable the "Power BI Desktop Infrastructure Update" feature switch. That should stop using WebView2. 

    If you cannot get to the Options due to app not launching, you can set the following environment variable to disable the feature for now:

    Environment Variable : "PBI_enableWebView2Preview"
    Value: "0"