Solved

VS 2010 C# Access violation on Win8.1, works on Vista

Posted on 2013-12-31
3
977 Views
Last Modified: 2014-01-01
I just installed a fresh version of Win8.1 and Visual Studio 2010.  I have a C# program that worked before and still works on my laptop.  However, when I run it in debug on my Win8 box, I get the following errors:

...
A first chance exception of type 'System.NullReferenceException' occurred in MixerNet.dll
A first chance exception of type 'System.NullReferenceException' occurred in MixerNet.dll
'MixerNetTest.vshost.exe' (CLR v4.0.30319: MixerNetTest.vshost.exe): Loaded 'h4v3tvsv'. Module was built without symbols.
The program '[5216] MixerNetTest.vshost.exe' has exited with code -1073741819 (0xc0000005) 'Access violation'.

The "loaded 'h4v3tvsv'" part changes every time I run the debugger.  It just fails when I try to run the .exe.  I loaded VS 2013 and got the same error.  

Folder that contains the project has full control for everyone.  Any direction as to what's going on is appreciated.
0
Comment
Question by:StarDusterII
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 40

Accepted Solution

by:
Jacques Bourgeois (James Burger) earned 500 total points
ID: 39748827
A couple of hints.

Did you install the same edition of Windows 8.1 as what you have on your Win8 computer? Some components.

I heard that there are a few components in framework 4.0 and 4.5 that do not work well with Windows 8.1. You might try to target framework 4.5.1 from VS2013.
0
 

Author Comment

by:StarDusterII
ID: 39749912
Sorry, not sure I understand your first question.  I probably wasn't clear.  There is only one PC with Windows 8.1 on it.  I just used a generic Win8 to refer to it.

I changed from .Net Framework 4 Client Profile to .Net Framework 4.5.1 (no client profile here) and got a new error.  However, that one said I didn't have rights to change the registry so I ran the troubleshooter and had it run as Administrator and that worked.  I went back to VS 2010 and did the same thing there, reset the framework to 4 Client Profile and it worked there too.  

You weren't quite there but it pushed me into the solution, so I'll give you the credit!  ;-)
0
 

Author Closing Comment

by:StarDusterII
ID: 39749913
Wasn't quite the answer but led me to it
0

Featured Post

Increase Agility with Enabled Toolchains

Connect your existing build, deployment, management, monitoring, and collaboration platforms. From Puppet to Chef, HipChat to Slack, ServiceNow to JIRA, Splunk to New Relic and beyond, hand off data between systems to engage the right people.

Connect with xMatters.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
This Micro Tutorial will show you how to maximize your wireless card to its maximum capability. This will be demonstrated using Intel(R) Centrino(R) Wireless-N 2230 wireless card on Windows 8 operating system.
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question