Solved

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

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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Suggested Solutions

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…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
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.

821 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