Solved

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

Posted on 2013-12-31
3
956 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
  • 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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
In this Micro Tutorial viewers will learn how to use Boot Corrector from Paragon Rescue Kit Free to identify and fix the boot problems of Windows 7/8/2012R2 etc. As an example is used Windows 2012R2 which lost its active partition flag (often happen…
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…

757 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now