AccessViolationException During VS2010 Debugging in VBox

If you’re using VirtualBox to host a development environment for Visual Studio 2010, this info may be helpful to you.  During debug sessions, you may receive the following exception:

Access Violation Exception in VS2010 guest in VirtualBox

Access Violation Exception in VS2010 guest in VirtualBox

I resolved this problem by disabling VBox’s Nested Paging option for memory.  You’ll need to shut-down the guest OS, open its settings in VBox, and turn off the Nested Paging option.

VirtualBox Guest Settings Dialog, System/Acceleration/Enable Nested Paging Turned Off

VirtualBox Guest Settings Dialog

For reference, my configuration is:

Base OS: Windows 7 x64

Virtualization Host: VirtualBox 3.2.8

Guest OS: Windows Server 2008 R2, Standard

Visual Studio 2010 10.0.30319.1 RTMRel

16 comments for “AccessViolationException During VS2010 Debugging in VBox

  1. Jon
    November 19, 2010 at 9:53 am

    Thank you, I’ve been battling with this for days. I’ve looked around Google for a bit and finally today got the right search to find this page!

    • November 19, 2010 at 12:06 pm

      Jon, I’m glad the info was helpful! I still have sudden hardware reset issues, but much less frequently since turning off Nested Paging. I tried VMWare Workstation for about 2 weeks and had hardware resets, so I now believe there’s a problem w/physical NIC driver (I don’t think virtual NIC driver could easily reset hardware). If you have any more resets, pay attention to what network activity was occurring at the time. My recent resets have always been associated with heavy network activity.

  2. Peter
    December 19, 2010 at 5:20 pm

    Disabling VBox’s Nested Paging option for me didn`t change anything – I`m still getting this exception.
    Considering now switching back to vmware.

  3. JLeung
    April 12, 2011 at 1:01 pm

    I resolve this issue turning off the VT-x/AMD-V feature and the issue stop, hope this info help.

  4. Kevin B
    April 27, 2011 at 10:50 am

    THANK YOU, THANK YOU, THANK YOU!!! This issue has been plaguing me for a very long time.

  5. Kevin B
    April 27, 2011 at 11:13 am

    Actually, not so fast, I’m still experiencing this problem. :(

  6. July 13, 2011 at 3:37 pm

    This resolved my problem, thank you!

  7. July 18, 2011 at 12:21 pm

    Those of you tracking this topic may also be interested in “Why SQLCraftsman gave VirtualBox the boot” http://AltaModaTech.com/blogs/?p=390

  8. Carl
    August 12, 2011 at 2:00 pm

    Thanks for posting this. After making the change this error is no longer popping up.

  9. October 25, 2011 at 5:16 pm

    I also had to disable “Enable VT-x/AMD-V.” I installed my system with all of this disabled and enabled it later so I wonder if that is causing problems. Thanks for the tip.

  10. November 3, 2011 at 7:05 am

    turning off Nested Pagings helps, but the problem still remains. You will still receive the same error while running your code

  11. Peter
    November 20, 2011 at 6:40 pm

    SP1 for VS 2010 helps to resolve finally that problem.

  12. Ricardo F
    February 28, 2012 at 2:43 pm

    Muchas gracias, funciono de maravilla… Host OSX Lion, Guest Win 7 Pro

  13. June 3, 2012 at 6:48 pm

    To me it was solved by installing the Visual Studio 10 SP1

  14. Petr Vones
    May 8, 2013 at 1:45 pm

    The issue will be fixed in the next VirtualBox major release 4.3, see https://www.virtualbox.org/ticket/9659#comment:30

Leave a Reply