使用Power Shell登录到Power BI会引发错误"System.Net.WebException:无法解析远程名称:"localhost.fiddler"". [英] Login to Power BI with Power shell throws error "System.Net.WebException: The remote name could not be resolved: 'localhost.fiddler'"

查看:84
本文介绍了使用Power Shell登录到Power BI会引发错误"System.Net.WebException:无法解析远程名称:"localhost.fiddler"".的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试使用Microsoft Power Shell ISE 登录到 Power BI 时:

  Login-PowerBI 

从软件包中下载:

When I'm trying to login to Power BI with Microsoft Power Shell ISE:

Login-PowerBI

from the Package: MicrosoftPowerBIMgmt, I'm getting the following error:

Failed to get ADAL token: Unhandled Exception: System.AggregateException: One or more errors occurred. ---> System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The r emote name could not be resolved: 'localhost.fiddler' at System.Net.HttpWebRequest.EndGetResponse...

解决方案

I had a similar problem with Visual Studio NuGet service.

When PowerShell tries to log in to Power BI account (when executing command Login-PowerBI), it executes AzureADWindowsAuthenticator.exe, which looks for the configuration under:
MicrosoftPowerBIMgmt.Profileversion of power bi profilelibnetstandardWindowsAuthenticator directory.

The configuration file is called AzureADWindowsAuthenticator.exe.config.

To solve the problem edit the configuration file as Administrator and add the following under <configuration> section:

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


The final result should be like this:

这篇关于使用Power Shell登录到Power BI会引发错误"System.Net.WebException:无法解析远程名称:"localhost.fiddler"".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆