Microsoft 开发人员网络 > 论坛主页 > Visual Studio Extensibility > Package 'Visual Studio Explorers and Designers Package' has failed to load properly due to add-in?
提出问题提出问题
 

已答复Package 'Visual Studio Explorers and Designers Package' has failed to load properly due to add-in?

  • 2008年6月2日 13:42Peter RitchieMVP用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     
    I've got a couple of computers where I get Package 'Visual Studio Explorers and Designers Package' has failed to load properly errors; but only since I've started playing around with some VSX add-ins.

    Is it possible that this error is due to a command or CommandBar created on add-in startup that wasn't deleted on shutdown?

    Cheers -- Peter
    http://www.peterRitchie.com/blog

答案

全部回复

  • 2008年6月2日 15:50Feng Chen版主用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     
    This should be Package Load Failures and should not be because of the command or CommandBar.

    And I'd like to provide you with the following references about troubleshooting tips of such kind of issue:
    Definitive list of workarounds for Package Load Failure errors in Visual Studio 2005
    Debugging Package Load Failures

    And please feel free to tell me if these do not help you about this issue. If you still can not solve it, could you please provide more information about the error?

    Thanks!

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
  • 2008年6月2日 15:57Peter RitchieMVP用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     
    This is in VS 2008, Aaron's detail in the first link details "if you have never had a VS 2005 on your system and are encountering package load failure errors, these steps will most likely not help."  Repairing .NET 2.0 and deleting the native images does not fix the problem, and running ttool.exe finds no problems.

    The second link deals with custom packages; I am unable to debug "Visual Studio Explorers and Designers Package".

    http://www.peterRitchie.com/blog
  • 2008年6月3日 0:06Feng Chen版主用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     
    Hi Peter,

    Sorry to hear that this problem still exits.

    Could you please provide the GUID following the error message? Have you used Assembly Binding Log Viewer? Based on my experience, this kind of issue might caused by assembly loading failure. Also you can use Process Monitor to see if there are any registry error causing this issue.

    Thanks!



    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
  • 2008年6月3日 13:40Peter RitchieMVP用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     
      The GUID was 8D8529D3-625D-4496-8354-3DAD630ECC1B.  I was getting the failure going into project properties.  I'm unable to reproduce the same failure. I'm now getting "An error has occurred trying to load the page. COM object that has been separated from its underlying RCW cannot be used.
    http://www.peterRitchie.com/blog
  • 2008年6月11日 16:41Peter RitchieMVP用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     已答复
    This problem was due to Microsoft Source Code Analysis for C#.  See http://code.msdn.microsoft.com/sourceanalysis/WorkItem/View.aspx?WorkItemId=9
    http://www.peterRitchie.com/blog
  • 2008年8月26日 13:36Gregor Suttie 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     
    Mate u r the MAN! - that was really bugging me as no onelese at my work was getting it - removed it an it works fine.

    Thanks for your post!

    G
  • 2008年8月26日 14:45Peter RitchieMVP用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     
    What version of Source Code Analysis for C# were you using?
    http://www.peterRitchie.com/blog