Solved

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

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
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…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

813 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

8 Experts available now in Live!

Get 1:1 Help Now