Windows Azure培训套件难度大

时间:2010-09-05 23:54:59

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

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

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

它检测到已安装所有依赖项。然后它会提示我安装代码段。我把所有盒子都留了下来。它点击“下一步”,然后点击验证警告。它询问我在Visual Studio 2008中我想安装片段的位置(为什么不安装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片段的位置”,其中LANG是“VB”或“C#”。这一次,没有条目。我通过它们点击“下一步”,然后进入安装页面。它安装了一半的片段,并跳过其余的片段。

我在这里做错了什么?这是一个错误,还是我犯了错误?有什么工作吗?

1 个答案:

答案 0 :(得分:0)

两件事:

  1. 当您打开Visual Studio命令提示符时,是否选择以管理员身份运行?这是必要的。
  2. 当系统提示您安装代码段的位置时,您不想检查所有框。您想要选择左侧的所有片段,然后只需选中右侧顶部的My Code Snippets复选框。这是左侧所有这些片段安装到的地方。而且......如果您只使用一种语言,比如说C#,则无需安装VB代码片段。
  3. 希望这可以帮助您解决安装问题。