[英]Login to Power BI with Power shell throws error “System.Net.WebException: The remote name could not be resolved: 'localhost.fiddler'”
當我嘗試使用 Microsoft Power Shell ISE登錄Power BI時:
Login-PowerBI
從 Package: MicrosoftPowerBIMgmt ,我收到以下錯誤:
無法獲取 ADAL 令牌:未處理的異常:System.AggregateException:發生了一個或多個錯誤。 ---> System.Net.Http.HttpRequestException:發送請求時出錯。 ---> System.Net.WebException:無法解析 r 表情名稱:System.Net.HttpWebRequest.EndGetResponse 處的“localhost.fiddler”...
我與 Visual Studio NuGet service有類似的問題。
當 PowerShell 嘗試登錄Power BI帳戶時(執行命令Login-PowerBI
時),它會執行AzureADWindowsAuthenticator.exe
,它會查找以下配置:
MicrosoftPowerBIMgmt.Profile
→ version of power bi profile
→ lib
→ netstandard
→ WindowsAuthenticator
目錄。
配置文件稱為
AzureADWindowsAuthenticator.exe.config
。
要解決此問題,請以管理員身份編輯配置文件,並在<configuration>
部分添加以下內容:
<system.net>
<defaultProxy enabled="true" useDefaultCredentials="true">
<proxy usesystemdefault="true" bypassonlocal="true" />
</defaultProxy>
<settings>
<ipv6 enabled="true"/>
</settings>
</system.net>
最終結果應該是這樣的:
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.