LEGACY CONTENT
This article refers to legacy products, components or features. Therefore, the content in this article is offered "as is" and will no longer be updated. This content does not infer that the product, component or feature is supported, or that the product, component or feature will continue to function as described herein.

Introduction

An error occurs when opening Microsoft Visual Studio after upgrading K2 blackpearl RTM or SP1 to K2 blackpearl 0803 if the Microsoft Windows installation is located on a drive location other than “C:”.

This article will describe the error involved, and how to resolve the issue.

Package Load Failure

During the upgrade from a previous version of K2 blackpearl to K2 blackpearl 0803, the installer registers two registry settings used by K2 Designer for Visual Studio that refer to specific “C:” based Windows directory locations. As the referred to files have not been installed to the “C:” based locations, a “package load failure” error will occur when attempting to open MS Visual Studio.

The two registry values are as follows:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\Packages\{ab85df7a-ee9a-42cb-877e-e96781a6e60e}]
"CodeBase"="C:\\WINDOWS\\assembly\\GAC_MSIL\\SourceCode.VisualStudio\\
4.0.0.0__16a2c5aaaa1b130d\\SourceCode.VisualStudio.dll"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\Packages\{ab85df7a-ee9a-42cb-877e-e96781a6e60e}]
"InprocServer32"="C:\\WINDOWS\\system32\\mscoree.dll"


Error Message

The following error message relates to this KB Article:
  • Package load failure

Workaround

The error can be resolved by following the steps below:
  1. Replace the "C:" in the registry values with the relevant letter that WINDOWS is installed on.
  2. Run "<drive>:\program files\microsoft visual studio 8\common7\ide\devenv.exe" /Setup.
Important: "<drive>:\program files\microsoft visual studio 8\common7\ide\devenv.exe" /Setup must be run after editing the registry settings and BEFORE re-opening Microsoft Visual Studio