Get-AzurePublishSettingsFile给出了Class not registered错误

Rih*_*eij 3 powershell azure

我安装了Azure Powershell Command(从这里https://www.windowsazure.com/en-us/manage/downloads)

我也跑了

Set-ExecutionPolicy RemoteSigned
Run Code Online (Sandbox Code Playgroud)

然后,我在管理员凭据下运行Windows Azure PowerShell

但是我收到以下错误

Get-AzurePublishSettingsFile : Class not registered
At line:1 char:1
+ Get-AzurePublishSettingsFile
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : CloseError: (:) [Get-AzurePublishSettingsFile],  Win32Exception
+ FullyQualifiedErrorId : Microsoft.WindowsAzure.Management.Cmdlets.GetAzurePublishSettingsCommand
Run Code Online (Sandbox Code Playgroud)

Fly*_*ynn 5

在使用Chrome作为我的默认浏览器时,我在Windows 8上遇到了完全相同的问题.

解决方案是Internet Explorer打开浏览器相关文件的默认程序*.html.

Internet Explorer > Internet Settings > Programs > Set associations = Select all
Run Code Online (Sandbox Code Playgroud)

这样就可以了.也许单个条目就足够了,但我没有检查.

  • 哇有效......但那只是烦人的 (2认同)