当我试图登录到 权力商业智能 与微软 Power Shell ISE:
Login-PowerBI
从包。MicrosoftPowerBIMgmt,我得到以下错误。
Failed to get ADAL token: Unhandled Exception: System.AggregateException: System.AggregateException: 一个或多个错误发生。---> System.Net.Http.HttpRequestException: 发送请求时发生错误。---> System.Net.WebException.Http.HttpRequestException:发送请求时发生错误。The r emote name could not be resolved: 'localhost.fiddler' at System.Net.HttpWebRequest.EndGetResponse...。
我在Visual Studio中也遇到了类似的问题 NuGet服务.
当PowerShell尝试登录到 权力商业智能 帐户 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>
最后的结果应该是这样的。