2
Vote

Visual Studio crashes when launched with system.nullreferenceexception

description

I installed the add-in for the first time, from the setup dated 17/8/2006 with the administrator account to "all users". Yet, the add-in only appeared in Visual Studio 2005 with the administrator account. Hoping to use it with user accounts, I copied Administrator\My Documents\Visual Studio 2005\Addins\OvernightPowerAddIns.addin to the same location wtih the user, but then I then Visual Studio crashes when being launched, with the following error:
 
EventType : clr20r3 P1 : devenv.exe P2 : 8.0.50727.42 P3 : 4333e699
P4 : overnightpoweraddins P5 : 1.0.2420.2506 P6 : 44e3b705 P7 : 1e9
P8 : 23 P9 : system.nullreferenceexception
 
What else do I need to do? I tried copying the entire "Visual My Documents\Visual Studio 2005" folder, but got the same error.
 
I looked at "Add-In Registration" at http://msdn2.microsoft.com/en-us/library/19dax6cz(vs.80).aspx, but it didn't give me any more ideas.

file attachments

comments

docupro wrote Sep 3, 2007 at 9:48 AM

Steps to reproduce this error:

Install add in on domain user account such as user1Log out and log in as user2Copy "My Documents" folder from user1 to user2, overwriting existing file structureLaunch Visual Studio 2005 and an error occurs, triggering a standard Windows error report with option to send to Microsoft.

In my case, we upgraded our domain server and my old profile (belonging to a different Windows domain) was no longer accessible. I copied my "My Documents" folder, including the "Visual Studio 2005" folder and this problem started occuring.

Workaround #1: Open the "My Documents\Visual Studio 2005\Addins" folder and rename the file: "OvernightPowerAddIns.Addin" to "OvernightPowerAddIns.Addin.bak" - this prevents the add-in from loading when startign Visual Studio 2005

Workaround #2: Launch the setup.exe application of this project contained in the original file you downloaded from CodePlex and select the "Repair" option. This will repair the issue.

wrote Sep 3, 2007 at 9:49 AM

wrote Feb 12, 2013 at 10:48 PM