Geeks With Blogs
Path Notes of a Kodefu Master blog

I finished up a Visual Studio package, generated the package load key (plk), created an installer, and deployed it to a tester. Of course, it didn't work. Whenever the tester tried to open up the designer, the following error was displayed (note: the screenshots don't reflect the actual product as it is proprietary).

Package Load Failure - Package 'XmlDesigner.VsPackage, XmlDesigner, Version=1.0.3397.31516, Culture=neutral, PublicKeyToken=0a7205e1305966ea' has failed to load properly (GUID = {EB5B62E8-85C8-40AB-862B-98DFD1FAC2A2} ). Please contact package vender 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.

To duplicate the environment, I downloaded a set up a virtual pc with Visual Studio Team System 2008. I did a lot of testing and discovered that it would load up fine when the sdk was installed. That's when I realized I never tested the package with the /NoVSIP switch for devenv.exe. Once I did, I received the same messages on my workstation.

I opened the package in the Package Load Analyzer and received the following message.

Visual Studio Package Load analysis for package {eb5b62e8-85c8-40ab-862b-98dfd1fac2a2} failed. Following Verification(s) failed:-

Plk Verification

A few people in the forums had similar issues, but the response was always the same: "PLK failures almost always result from a typographical error." As some people suggested, I ran devenv.exe with the log switch on, but it didn't provide any more information than the Package Load Analyzer. I generated keys several times, checked and double-checked that all the information was correct in the ProvideLoadKey attribute. Finally, I started playing around with the the resource file. That's when I discovered that there were line breaks in the plk. I removed the line breaks, and the package finally started loading!

If you generate the plk on Microsoft's website, it inserts line breaks. Of course, it's pretty long, so you're likely to copy and paste it into the resource designer. If you don't remove the line breaks, you will have the same problem.

Posted on Monday, April 20, 2009 7:03 PM Kodefu | Back to top


Comments on this post: Package Load Key Issue

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © Chris Eargle | Powered by: GeeksWithBlogs.net