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 thoughts on “AccessViolationException During VS2010 Debugging in VBox

  1. 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!

    • 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. Disabling VBox’s Nested Paging option for me didn`t change anything – I`m still getting this exception.
    Considering now switching back to vmware.

Leave a Reply