Search

The 'TestWindowPackage' package did not load correctly by belflinx

Closed
as Not Reproducible Help for as Not Reproducible

6
0
Sign in
to vote
Type: Bug
ID: 776874
Opened: 1/18/2013 1:10:56 AM
Access Restriction: Public
0
Workaround(s)
3
User(s) can reproduce this bug
I have Visual Sudtio 2012 Premium installed on a Windows 2008 R2 Standard server.

I was able to create MVC application and a Unit Test project with no problem.

I installed Visual 2012 SP1 and now i am not able to open unit test projects, the following message is displayed
"The 'TestWindowPackage' package did not load correctly" The problem way have been caused by a configuration change or the installation of another extension. You can get more information by examining the file c:\users\username\AppData\Roaming\Microsoft\VisualStudio\11.0\ActivityLog.XML

I have had a look at the xml file mentioned above and have included the message below

<entry>
    <record>505</record>
    <time>2013/01/17 09:31:28.236</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>Begin package load [TestWindowPackage]</description>
    <guid>{BFC24BF4-B994-4757-BCDC-1D5D2768BF29}</guid>
</entry>
<entry>
    <record>506</record>
    <time>2013/01/17 09:31:28.272</time>
    <type>Error</type>
    <source>TestWindowPackage</source>
    <description>TestWindowPackage.Initialize failed with exception:System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.VisualStudio.TestWindow.VsHost.TestWindowPackage.Initialize()</description>
</entry>
<entry>
    <record>507</record>
    <time>2013/01/17 09:31:28.273</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>SetSite failed for package [TestWindowPackage]</description>
    <guid>{BFC24BF4-B994-4757-BCDC-1D5D2768BF29}</guid>
    <hr>80004003 - E_POINTER</hr>
    <errorinfo>Object reference not set to an instance of an object.</errorinfo>
</entry>
<entry>
    <record>508</record>
    <time>2013/01/17 09:31:28.275</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>End package load [TestWindowPackage]</description>
    <guid>{BFC24BF4-B994-4757-BCDC-1D5D2768BF29}</guid>
    <hr>80004003 - E_POINTER</hr>
    <errorinfo>Object reference not set to an instance of an object.</errorinfo>
</entry>

I have tried to create new Solutions with Unit Test Projects and am still getting the same message.

Is there a workaround or solution for this problem.

Jason
Details (expand)

Visual Studio/Team Foundation Server/.NET Framework Tooling Version

Visual Studio 2012

Steps to reproduce

Install Visual Studio Premium 2012
Create a MVC 4 Web Application with Unit tests (All work ea expected)
Install/Upgrade Visual Studio Premium 2012 SP1
Unit test from above no longer work.

Create new MVC 4 Web Aplication with Unit tests (test dont work)

Product Language

English

Operating System

Windows Server 2008 R2

Operating System Language

English

Actual results

Cannot run tests from unit tests

Expected results

Ability to run and create unit tests
File Attachments
File Name Submitted By Submitted On File Size  
ActivityLog.xml 4/10/2013 86 KB
Sign in to post a comment.
Posted by Microsoft on 5/15/2013 at 3:45 PM
The additional attached file did not aid us in reproducing this issue. If you still see problems with this bug please let us know and we can investigate.

Thanks,
Joshua Weber
Posted by Microsoft on 2/25/2013 at 9:08 AM
We were unable to duplicate this problem in our test environment. Please let us know if you are still experiencing the problem.
Posted by Microsoft on 2/4/2013 at 4:51 PM
We are working on duplicating the problem in our environment. In the meantime, could you try uninstalling Update 1, repairing Visual Studio 2012 installation and reinstalling Update 1?
Posted by David Lowndes on 1/31/2013 at 3:00 PM
I've tried those commands too - they've made no difference.
Windows 7.
Posted by ShinyDiscoBall on 1/30/2013 at 6:21 PM
I am also hitting this issue. I tried the following command but to no avail.

del %LocalAppData%\Microsoft\VisualStudio\11.0\ComponentModelCache
devenv /setup

I am running VS 2012 Update 1 on Windows 8. The error pops up everytime I laugh a sln or create a new project. Everytime!
Posted by Microsoft on 1/29/2013 at 1:10 PM
This may be caused by a corruption in the metadata cache Visual Studio maintains for its various components. Could you run the following two steps from the Developer Command Prompt for VS2012 and let us know if this fixed the problem? Please run these commands "As Administrator" to avoid file access errors.

del %LocalAppData%\Microsoft\VisualStudio\11.0\ComponentModelCache
devenv /setup

Thanks,
Oleg Sych
Posted by Microsoft on 1/20/2013 at 5:53 PM
Thanks for your feedback.

We are rerouting this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.
Posted by Microsoft on 1/18/2013 at 1:50 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.