Error Executing VSI File with Toolbox Controls

I tried to deploy a custom control in VSI file and I got the following error:

Package Load Failure

Package 'ToolBox Control Installer Package' has failed to load property (GUID = {36839529-3AF3-47FA-8194-F4A3FA9F0ED7}). Please contact package vendor for assistance. Application restart is recommended, due to possible environment corruption. Would you like to disable loading this package in the future
You may use 'devenv /resetskippkgs' to re-enable package loading.


Here is my vscontent file:

< xml version="1.0" encoding="utf-8" >
<VSContent xmlns="
http://schemas.microsoft.com/developer/vscontent/2005">
 <Content>
  <FileName>Control1.dll</FileName>
  <DisplayName>My Control</DisplayName>
  <Description>This is a test control</Description>
  <FileContentType>Toolbox Control</FileContentType>
  <ContentVersion>1.0</ContentVersion>
 </Content>
</VSContent>


And when I try to use "devenv /Command Tools.InstallCommunityControls", I got the same message.

Can someone help me out
Thanks a lot!



Answer this question

Error Executing VSI File with Toolbox Controls

  • v-lijieh

    Harry,

    We have seen this error occur if you have added/deleted Toolbox tabs manually. If you have done that then you can try the following workaround.
    You can remove all values under HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\8.0\UserToolBoxControls and then run the command again. Could you try that and let us know.

    Thanks,
    Chetan


  • zsn

    Harry,

    This looks like an issue with the SQL Server Management Studio Express install. I would encourage you to report this issue via the following link:
    http://lab.msdn.microsoft.com/productfeedback/Default.aspx

    Click on the Report a Bug.

    Once you report this bug, it will give you a chance to track this bug and its resolution and fix availability etc.

    Thanks,
    Chetan

  • Sven Peeters

    I have posted a workaround here.

  • chris22ka

    Harry,

    Thanks for the info. I will investigate this further.

    Thanks,
    Chetan

  • Wim 2005

    Thanks, but I think I find out more.

    I believe this was caused by SQL Server Management Studio Express CTP.
    Below is the system registry for package {36839529-3AF3-47fa-8194-F4A3FA9F0ED7} BEFORE I install SQL SMSS:

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\Packages\{36839529-3AF3-47fa-8194-F4A3FA9F0ED7}]
    @="ToolBox Control Installer Package"
    "InprocServer32"="C:\\WINDOWS\\system32\\mscoree.dll"
    "Class"="Microsoft.VisualStudio.ToolBoxControlInstaller.VSToolBoxCtlInstaller"
    "Assembly"="Microsoft.VisualStudio.ToolBoxControlInstaller, Version=8.0.0.0, Culture=Neutral, PublicKeyToken=b03f5f7f11d50a3a"
    "CodeBase"="
    file:///C:\\Program Files\\Microsoft Visual Studio 8\\Common7\\IDE\\Microsoft.VisualStudio.ToolBoxControlInstaller.dll"

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\Packages\{36839529-3AF3-47fa-8194-F4A3FA9F0ED7}\SatelliteDll]
    "Path"="C:\\Program Files\\Microsoft Visual Studio 8\\Common7\\IDE\\"
    "DllName"="Microsoft.VisualStudio.ToolBoxControlInstallerUI.dll"


    And here is the same registry AFTER SQL SMSS is installed:

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\Packages\{36839529-3AF3-47fa-8194-F4A3FA9F0ED7}]
    @="ToolBox Control Installer Package"
    "InprocServer32"="mscoree.dll"
    "Class"="Microsoft.VisualStudio.ToolBoxControlInstaller.VSToolBoxCtlInstaller"
    "Assembly"="Microsoft.VisualStudio.ToolBoxControlInstaller, Version=8.0.0.0, Culture=Neutral, PublicKeyToken=b03f5f7f11d50a3a"
    "CodeBase"="
    file:///C:\\Program
    Files\\Microsoft SQL Server\\90\\Tools\\Binn\\VSShell\\Common7\\IDE\\Microsoft.VisualStudio.ToolBoxControlInstaller.dll"

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\Packages\{36839529-3AF3-47fa-8194-F4A3FA9F0ED7}\SatelliteDll]
    "Path"="C:\\Program Files\\Microsoft SQL Server\\90\\Tools\\Binn\\VSShell\\Common7\\IDE\\"
    "DllName"="Microsoft.VisualStudio.ToolBoxControlInstallerUI.dll"


    The red parts show the differences. I don't know why SQL SMSS does this but uninstall SQL SMSS won't restore the original registry values, and, what's worse, all the files in that sql folder are gone.

    Mannually restore the registry can solve the problem, but I don't think it is a good solution. So will someone please tell Microsoft to fix this bug


  • Error Executing VSI File with Toolbox Controls