用Power shell登录Power BI时,出现错误 "System.Net.WebException.远程名称无法解析:'localhost.fiddler'"。远程名称无法解析:'localhost.fiddler'"

问题描述 投票:0回答:1

当我试图登录到 权力商业智能 与微软 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...。

powershell authentication powerbi fiddler
1个回答
2
投票

我在Visual Studio中也遇到了类似的问题 NuGet服务.

当PowerShell尝试登录到 权力商业智能 帐户 Login-PowerBI),它执行的是 AzureADWindowsAuthenticator.exe,它寻找下的配置。 MicrosoftPowerBIMgmt.Profileversion of power bi profilelibnetstandardWindowsAuthenticator 目录。

配置文件被称为 AzureADWindowsAuthenticator.exe.config.

要解决这个问题,请编辑配置文件为 管理员 并在下面增加以下内容 <configuration> 节。

<system.net>
    <defaultProxy enabled="true" useDefaultCredentials="true">
        <proxy usesystemdefault="true" bypassonlocal="true" />
   </defaultProxy>
   <settings>
        <ipv6 enabled="true"/>
   </settings>
</system.net>

最后的结果应该是这样的。

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.