【问题标题】:Difficulty with Windows Azure Training KitWindows Azure 培训工具包的难点
【发布时间】:2010-09-06 12:40:17
【问题描述】:

我下载了Windows Azure Training Kit。我使用的是 Visual Studio 2010,虽然我的机器上也有 VS 2008。

我运行了下载的安装程序,并被定向到一个 HTML 页面。我正在做“VS 2010 开发人员的 Windows Azure 简介”实验室。按照说明,我启动了 VS 2010 命令提示符,并运行了 SetupLab.cmd。

它检测到所有依赖项都已安装。然后它提示我安装代码 sn-ps。我把所有的框都选中了。它点击“下一步”,然后点击验证警告。它询问我想在 Visual Studio 2008 的哪个位置安装 sn-ps(为什么不安装 VS 2010?)我选择默认位置并点击“下一步”。

然后,出现这个错误:

See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ArgumentNullException: Value cannot be null.
Parameter name: value
   at System.Windows.Forms.ImageList.ImageCollection.Add(Image value)
   at VSContentInstaller.SnippetLanguagePage.SnippetLanguagePage_Load_1(Object sender, EventArgs e)
   at System.Windows.Forms.UserControl.OnLoad(EventArgs e)
   at System.Windows.Forms.UserControl.OnCreateControl()
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.ControlCollection.Add(Control value)
   at Microsoft.WizardFramework.WizardForm.ActivatePage(WizardPage page)
   at Microsoft.WizardFramework.WizardPage.Activate()
   at Microsoft.WizardFramework.WizardForm.OnNext()
   at Microsoft.WizardFramework.WizardForm.OnNextClicked(Object sender, EventArgs e)
   at Microsoft.WizardFramework.NavigationButtonBar.OnNext(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4952 (win7RTMGDR.050727-4900)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
VSContentInstaller
    Assembly Version: 10.0.0.0
    Win32 Version: 10.0.30319.1
    CodeBase: file:///c:/Program%20Files/Common%20Files/Microsoft%20Shared/MSEnv/VSContentInstaller.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Microsoft.VisualStudio.VSContentInstaller
    Assembly Version: 8.0.0.0
    Win32 Version: 8.0.50727.42
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualStudio.VSContentInstaller/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.VSContentInstaller.dll
----------------------------------------
Microsoft.VisualStudio.Zip
    Assembly Version: 8.0.0.0
    Win32 Version: 8.0.50727.762
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualStudio.Zip/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Zip.dll
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Microsoft.WizardFramework
    Assembly Version: 8.0.0.0
    Win32 Version: 10.0.30319.1
    CodeBase: file:///c:/Program%20Files/Common%20Files/Microsoft%20Shared/MSEnv/Microsoft.WizardFramework.DLL
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

我点击“继续”,然后出现两个页面,就像我刚刚点击“下一步”的页面一样:“选择安装每个 LANG sn-p 的位置”,其中 LANG 是“VB”或“C# ”。这一次,没有条目。我通过它们点击“下一步”,然后进入安装页面。它安装了一半的 sn-ps,并跳过了其余部分。

我在这里做错了什么?这是一个错误,还是我犯了一个错误?有什么解决办法吗?

【问题讨论】:

    标签: visual-studio-2010 azure code-snippets


    【解决方案1】:

    两件事:

    1. 当您打开 Visual Studio 命令提示符时,您是否选择了以管理员身份运行?这是必要的。
    2. 当系统提示您在何处安装代码 sn-ps 时,您不想选中所有复选框。您想选择左侧的所有 sn-ps,然后只需选中右侧顶部的 My Code Snippets 复选框。这是左侧的所有 sn-ps 安装到的位置。而且...如果您只使用一种语言,例如 C#,则无需安装 VB 代码 sn-ps。

    希望这可以帮助您解决安装问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-07-10
      • 1970-01-01
      • 2012-06-15
      • 1970-01-01
      • 2020-06-24
      相关资源
      最近更新 更多