Visual Studio Add-in causes VS2010 to crash on start-up - FogBugz Knowledge Exchange most recent 30 from http://fogbugz.stackexchange.com 2013-05-24T21:53:34Z http://fogbugz.stackexchange.com/feeds/question/6506 http://www.creativecommons.org/licenses/by-nc/2.5/rdf http://fogbugz.stackexchange.com/questions/6506/visual-studio-add-in-causes-vs2010-to-crash-on-start-up Visual Studio Add-in causes VS2010 to crash on start-up Program.X 2011-01-05T12:51:21Z 2012-08-02T19:19:07Z <p>Using the latest version of FogBugz plug-in and I get a crash message from VS2010 when I start up. </p> <p>Crash details below:</p> <pre> Problem Event Name: CLR20r3 Problem Signature 01: devenv.exe Problem Signature 02: 10.0.30319.1 Problem Signature 03: 4ba1fab3 Problem Signature 04: FogBugzForVisualStudio Problem Signature 05: 3.0.3958.28123 Problem Signature 06: 4cd07687 Problem Signature 07: fd Problem Signature 08: c0 Problem Signature 09: System.NullReferenceException OS Version: 6.1.7600.2.0.0.256.1 Locale ID: 2057 Additional information about the problem: LCID: 1033 </pre> <p>Interesting that I restart VS in Admin mode and it works, even when restarted without admin privilages subsequently.</p> http://fogbugz.stackexchange.com/questions/6506/visual-studio-add-in-causes-vs2010-to-crash-on-start-up/6650#6650 Answer by Sam for Visual Studio Add-in causes VS2010 to crash on start-up Sam 2011-01-17T21:54:18Z 2011-01-18T03:35:20Z <p>I have been able to reproduce it. If I don't run-as admin and I try to view the window (via the view menu) it crashes. When I run as admin the window always displays. Here's the signature from the crash.</p> <p>Problem signature: Problem Event Name: APPCRASH Application Name: devenv.exe Application Version: 10.0.30319.1 Application Timestamp: 4ba1fab3 Fault Module Name: StackHash_0a9e Fault Module Version: 0.0.0.0 Fault Module Timestamp: 00000000 Exception Code: c0000005 Exception Offset: 01eaefaf OS Version: 6.1.7600.2.0.0.256.1 Locale ID: 1033 Additional Information 1: 0a9e Additional Information 2: 0a9e372d3b4ad19135b953a78882e789 Additional Information 3: 0a9e</p> <p>Additional Information 4: 0a9e372d3b4ad19135b953a78882e789</p> <p>By the way there is a simple workaround (in win7 anyway) to allow you to run-as admin by just clicking on the taskbar button without going through a bunch of context menus just to get to the run-as admin selection:</p> <ol> <li>Right click the vs10 taskbar icon</li> <li>Right click the actual program and select properties</li> <li>From the 'Shortcut' tab select 'Advanced'</li> <li>Check 'Run as administrator'</li> </ol> <p>Now whenever you click on the taskbar icon it will always run in admin mode and that has solved (at least for me) the crash that the Fogbugz addin is causing when in non-admin mode.</p> http://fogbugz.stackexchange.com/questions/6506/visual-studio-add-in-causes-vs2010-to-crash-on-start-up/7522#7522 Answer by Mali Findik for Visual Studio Add-in causes VS2010 to crash on start-up Mali Findik 2011-03-18T12:54:44Z 2011-03-18T12:54:44Z <p>I have a similar problem, but not exactly the same. I didn't get a crash in normal user mode, but it didn't start the FogBugz AddIn. As admin, everything seem to be perfect.</p> <p>Maybe it is a Windows 7 (x64) Problem?</p> http://fogbugz.stackexchange.com/questions/6506/visual-studio-add-in-causes-vs2010-to-crash-on-start-up/10056#10056 Answer by Bill for Visual Studio Add-in causes VS2010 to crash on start-up Bill 2012-03-02T01:29:22Z 2012-03-02T12:47:24Z <p>I experience the same crash upon starting Visual Studio 2010 ultimate (SP1Rel) immediately after installing your addin on a Windows 7 64 bit system. The crash report below indicates a System.UnauthorizedAccess exception, but I don't see what is being accessed.</p> <p>When running Visual Studio as an administrator it does not crash. Uninstalling your add-in made the problem go away, so it's definately something that needs to be fixed on your end.</p> <p>In all cases I had your add in window enabled, and it crashes using normal user priviledges consistently. (ie. Running once under administrative credentials did not fix normal mode)</p> <pre><code>EventType=CLR20r3 WOW64=1 Response.type=4 Sig[0].Name=Problem Signature 01 Sig[0].Value=devenv.exe Sig[1].Name=Problem Signature 02 Sig[1].Value=10.0.40219.1 Sig[2].Name=Problem Signature 03 Sig[2].Value=4d5f2a73 Sig[3].Name=Problem Signature 04 Sig[3].Value=mscorlib Sig[4].Name=Problem Signature 05 Sig[4].Value=4.0.0.0 Sig[5].Name=Problem Signature 06 Sig[5].Value=4ec9f77a Sig[6].Name=Problem Signature 07 Sig[6].Value=3790 Sig[7].Name=Problem Signature 08 Sig[7].Value=3e Sig[8].Name=Problem Signature 09 Sig[8].Value=System.UnauthorizedAccess DynamicSig[1].Name=OS Version DynamicSig[1].Value=6.1.7601.2.1.0.256.48 DynamicSig[2].Name=Locale ID DynamicSig[2].Value=1033 UI[2]=C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe UI[3]=Microsoft Visual Studio has encountered a problem and needs to close. UI[4]=If you had files open that contained unsaved changes, these changes might be lost. UI[5]=Check online for a solution and close the program UI[6]=Check online for a solution later and close the program UI[7]=Close the program Sec[0].Key=LCID Sec[0].Value=1033 FriendlyEventName=Stopped working ConsentKey=CLR20r3 AppName=Microsoft Visual Studio </code></pre> http://fogbugz.stackexchange.com/questions/6506/visual-studio-add-in-causes-vs2010-to-crash-on-start-up/10670#10670 Answer by David for Visual Studio Add-in causes VS2010 to crash on start-up David 2012-08-02T19:19:07Z 2012-08-02T19:19:07Z <p>I installed the add-in today; VS2010, Windows 7 SP1 64-bit. As with others, when I started VS2010 (non-admin), the add-in was installed and marked to start with VS, but the View->Other->FogBugz command did not cause the window to appear.</p> <p>I restarted VS2010, admin this time; the window appeared and I was able to log in, but VS crashed afterward, and continued to crash whether I started VS admin or non-admin.</p> <p>The error in another report hinted at an UnauthorizedAccess exception. I used Sysinternals Procmon to watch VS2010's activity. There was an attempt to open the file C:\Program Files (x86)\FogBugz\FogBugz for Visual Studio\VS9.0\FogBugzForVisualStudio.AddIn for writing (!), which failed, naturally.</p> <p>Unlike others, I see no evidence of the add-in in my My Documents folder.</p> <p>Hope this provides more data toward a solution. Thanks!</p>