locked
Issue for installing code snippets included in Windows Azure Platform Training Kit RRS feed

  • Question

  • Dear all,

    I downloaded Windows Azure Platform Training Kit September Refresh for VS2010 for lab.
    But when I try to install the code snippet for C#, I got the following exception:

    (some characters are Chinese-Traditional because my OS language is CHT)

    ============================================================

    System.ArgumentNullException: Value cannot be null。

    Parameter Name: value

       於 System.Windows.Forms.ImageList.ImageCollection.Add(Image value)

       於 VSContentInstaller.SnippetLanguagePage.SnippetLanguagePage_Load_1(Object sender, EventArgs e)

       於 System.Windows.Forms.UserControl.OnLoad(EventArgs e)

       於 System.Windows.Forms.UserControl.OnCreateControl()

       於 System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)

       於 System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)

       於 System.Windows.Forms.Control.CreateControl()

       於 System.Windows.Forms.Control.ControlCollection.Add(Control value)

       於 Microsoft.WizardFramework.WizardForm.ActivatePage(WizardPage page)

       於 Microsoft.WizardFramework.WizardPage.Activate()

       於 Microsoft.WizardFramework.WizardForm.OnNext()

       於 Microsoft.WizardFramework.WizardForm.OnNextClicked(Object sender, EventArgs e)

       於 Microsoft.WizardFramework.NavigationButtonBar.OnNext(Object sender, EventArgs e)

       於 System.Windows.Forms.Control.OnClick(EventArgs e)

       於 System.Windows.Forms.Button.OnClick(EventArgs e)

       於 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)

       於 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)

       於 System.Windows.Forms.Control.WndProc(Message& m)

       於 System.Windows.Forms.ButtonBase.WndProc(Message& m)

       於 System.Windows.Forms.Button.WndProc(Message& m)

       於 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

       於 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

       於 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

     

     

    ************** 已載入的組件 **************

    mscorlib

        組件版本: 2.0.0.0

        Win32 版本: 2.0.50727.4952 (win7RTMGDR.050727-4900)

        程式碼基底: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll

    ----------------------------------------

    VSContentInstaller

        組件版本: 10.0.0.0

        Win32 版本: 10.0.30319.1

        程式碼基底: file:///C:/Program%20Files%20(x86)/Common%20Files/Microsoft%20Shared/MSEnv/VSContentInstaller.exe

    ----------------------------------------

    mscorlib.resources

        組件版本: 2.0.0.0

        Win32 版本: 2.0.50727.4952 (win7RTMGDR.050727-4900)

        程式碼基底: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll

    ----------------------------------------

    System.Windows.Forms

        組件版本: 2.0.0.0

        Win32 版本: 2.0.50727.4927 (NetFXspW7.050727-4900)

        程式碼基底: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

    ----------------------------------------

    System

        組件版本: 2.0.0.0

        Win32 版本: 2.0.50727.4927 (NetFXspW7.050727-4900)

        程式碼基底: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll

    ----------------------------------------

    System.Drawing

        組件版本: 2.0.0.0

        Win32 版本: 2.0.50727.4927 (NetFXspW7.050727-4900)

        程式碼基底: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

    ----------------------------------------

    Microsoft.VisualStudio.VSContentInstaller

        組件版本: 8.0.0.0

        Win32 版本: 8.0.50727.4039

        程式碼基底: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualStudio.VSContentInstaller/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.VSContentInstaller.dll

    ----------------------------------------

    Microsoft.VisualStudio.Zip

        組件版本: 8.0.0.0

        Win32 版本: 8.0.50727.4039

        程式碼基底: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualStudio.Zip/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Zip.dll

    ----------------------------------------

    System.Xml

        組件版本: 2.0.0.0

        Win32 版本: 2.0.50727.4927 (NetFXspW7.050727-4900)

        程式碼基底: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll

    ----------------------------------------

    Microsoft.WizardFramework

        組件版本: 8.0.0.0

        Win32 版本: 10.0.30319.1

        程式碼基底: file:///C:/Program%20Files%20(x86)/Common%20Files/Microsoft%20Shared/MSEnv/Microsoft.WizardFramework.DLL

    ----------------------------------------

    VSContentInstaller.resources

        組件版本: 10.0.0.0

        Win32 版本: 10.0.30319.1

        程式碼基底: file:///C:/Program%20Files%20(x86)/Common%20Files/Microsoft%20Shared/MSEnv/zh-Hant/VSContentInstaller.resources.DLL

    ----------------------------------------

    System.resources

        組件版本: 2.0.0.0

        Win32 版本: 2.0.50727.4927 (NetFXspW7.050727-4900)

        程式碼基底: file:///C:/Windows/assembly/GAC_MSIL/System.resources/2.0.0.0_zh-CHT_b77a5c561934e089/System.resources.dll

    ----------------------------------------

    microsoft.wizardframework.resources

        組件版本: 8.0.0.0

        Win32 版本: 8.0.50727.4039

        程式碼基底: file:///C:/Program%20Files%20(x86)/Common%20Files/Microsoft%20Shared/MSEnv/zh-CHT/Microsoft.WizardFramework.resources.DLL

    ----------------------------------------

    Microsoft.WizardFramework.resources

        組件版本: 8.0.0.0

        Win32 版本: 10.0.30319.1

        程式碼基底: file:///C:/Program%20Files%20(x86)/Common%20Files/Microsoft%20Shared/MSEnv/zh-Hant/Microsoft.WizardFramework.resources.DLL

    ----------------------------------------

    System.Windows.Forms.resources

        組件版本: 2.0.0.0

        Win32 版本: 2.0.50727.4927 (NetFXspW7.050727-4900)

        程式碼基底: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_zh-CHT_b77a5c561934e089/System.Windows.Forms.resources.dll

    ----------------------------------------

    =================================================================================================

    How can I resolve this issue?
    Please help me to fix this problem.

    Thanks.


    以下為簽名檔,請勿對號入座:
    初學不是問題,但用不正確的態度來問問題,那就是很大的問題。
    請不要藉新手之名行小白之實,否則只會讓更多無辜的新手得不到幫助而已。
    如果不知道什麼是小白,請參閱:何謂小白
    Wednesday, November 10, 2010 3:27 PM

Answers

  • Do you also have the Windows Phone Developer Tools installed in your machine? I believe this is the cause. I don't know if there's a fix for this problem at this time, but you can try installing the snippets manually instead.

    If you rename the .vsi file to .zip, you can unpack the snippets into a suitable location. Then, in Visual Studio, go to Tools | Code Snippets Manager, click Add, and point to the location where you stored the snippets. I'm not 100% sure, but I think that this should install them.

     

    • Marked as answer by 小朱MVP Thursday, November 11, 2010 12:41 AM
    Wednesday, November 10, 2010 4:19 PM

All replies

  • Do you also have the Windows Phone Developer Tools installed in your machine? I believe this is the cause. I don't know if there's a fix for this problem at this time, but you can try installing the snippets manually instead.

    If you rename the .vsi file to .zip, you can unpack the snippets into a suitable location. Then, in Visual Studio, go to Tools | Code Snippets Manager, click Add, and point to the location where you stored the snippets. I'm not 100% sure, but I think that this should install them.

     

    • Marked as answer by 小朱MVP Thursday, November 11, 2010 12:41 AM
    Wednesday, November 10, 2010 4:19 PM
  • I will try to remove Windows Phone 7 Developer Tools and retry again.
    Thanks for your answer.
    以下為簽名檔,請勿對號入座:
    初學不是問題,但用不正確的態度來問問題,那就是很大的問題。
    請不要藉新手之名行小白之實,否則只會讓更多無辜的新手得不到幫助而已。
    如果不知道什麼是小白,請參閱:何謂小白
    Thursday, November 11, 2010 12:29 AM
  • I removed Windows Phone 7 Developer Tools and retry to install code snippets, it works.
    Thanks.
    以下為簽名檔,請勿對號入座:
    初學不是問題,但用不正確的態度來問問題,那就是很大的問題。
    請不要藉新手之名行小白之實,否則只會讓更多無辜的新手得不到幫助而已。
    如果不知道什麼是小白,請參閱:何謂小白
    Thursday, November 11, 2010 12:42 AM