代码改变世界

Windows Live Writer 配置报407 Proxy Authentication Required错误

2013-04-29 15:07  潇湘隐者  阅读(1254)  评论(0编辑  收藏  举报

在Windows 7 专业版上面安装Windows Live Writer后(版本号:14.0.8117.416),配置博客服务过程中报错(如下图所示)

clipboard

 

 

 

错误信息为:407 Proxy Authentication Required(The ISA Server requires authorization to fullfill the request. Access to the Web Proxy filter is denied)

刚开始我怀疑是博客园的http://www.cnblogs.com/kerrycode/services/metaweblog.aspx服务认证问题,结果我在IE输入上面URL时,可以访问服务,后来在Google搜索了下,终于发现了问题的症结所在:由于机器使用Windows身份验证协议,Windows Live Writer无法连接到博客,因此当我们设置博客的服务时,就会报上述错误。解决方法如下所示:

步骤1:首先找到你的Live Writer的安装目录,我的安装目录为:C:\Program Files (x86)\Windows Live ,然后找到Writer目录下的文件“WindowsLiveWriter.exe.config”

<configuration>

     <startup>

    <supportedRuntime version="v2.0.50727"/>

  </startup>

  <runtime>

    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">

      <probing PrivatePath="Plugins"/>

      <dependentAssembly>

        <assemblyIdentity

name="WindowsLive.Writer.Api"

publicKeyToken="31BF3856AD364E35" />

        <bindingRedirect oldVersion="1.0.0.0"

newVersion="1.1.0.0" />

      </dependentAssembly>

    </assemblyBinding>

  </runtime>

</configuration>

步骤二:在WindowsLiveWriter.exe.config里面加上下面信息:

    <system.net>

         <defaultProxy enabled="true" useDefaultCredentials="true">    </defaultProxy>

     </system.net>

如下所示:

<configuration>

     <system.net>

         <defaultProxy enabled="true" useDefaultCredentials="true">    </defaultProxy>

     </system.net>

     <startup>

    <supportedRuntime version="v2.0.50727"/>

  </startup>

  <runtime>

    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">

      <probing PrivatePath="Plugins"/>

      <dependentAssembly>

        <assemblyIdentity

name="WindowsLive.Writer.Api"

publicKeyToken="31BF3856AD364E35" />

        <bindingRedirect oldVersion="1.0.0.0"

newVersion="1.1.0.0" />

      </dependentAssembly>

    </assemblyBinding>

  </runtime>

</configuration>

步骤3:重新启动Windows Live Writer,然后配置博客,问题解决。

参考资料:

http://www.zayblog.com/computer-and-it/2011/08/20/how-to-use-windows-live-writer-behind-authenticated-proxy/