AccessViolationError, how to fix?

Using C# express beta 2, I'm getting an AccessViolationError on even very simple forms. It was working fine last night, now I can't get any new form to work. IE, I go to New Project, Windows Application. Add a single Label and click debug. It builds with no problem, but when it goes to debug I instantly get the exception. However, if I open a project I created last night, it works perfectly. I have restarted the IDE and restarted Windows, but it did not make any difference.
Thanks for any assistance you can provide.

If it will help, here is the exception detail (using copy to clipboard option):
System.AccessViolationException was unhandled
Message="Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
Source="Microsoft.VisualStudio.HostingProcess.Utilities"
StackTrace:
at Microsoft.VisualStudio.HostingProcess.VSHostInterop.SetForegroundWindow(IntPtr hWnd)

at Microsoft.VisualStudio.HostingProcess.HostProc.RunParkingWindowThread()

at System.Threading.ThreadHelper.ThreadStart_Context(Object state)

at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

at System.Threading.ThreadHelper.ThreadStart()

[1431 byte] By [mhorton] at [2007-12-16]
# 1
As a last resort, I attempted to reinstall, but that failed. (message about 'problems while creating the event log name') Maybe I need to completely uninstall first, but I'm afraid to in case it still won't install.

I am able to use previously saved projects and modify them completely without error. Could the template that generates the code for new projects have been corrupted? If so, how can I fix it?

Edit - Further testing results:
I get the same results with the Screen Saver, Console, and Movie projects. The only new project that will work is the Empty project, which I then add a class via the Project menu.
All project save prior to today still function.
I read in another thread, someone mentioned running setup.exe /repair. I tried that but get the same event log name error.
I did a repair installation of the "Microsoft MSDN Express Library 2005 Beta 2 - English" located in the MS VS 8 folder, did not help.
Can anyone think of anything else I can try?
Edit #2, more testing:
If I make a new Console application, make no changes, run it, I get the Exception. Then I copy all of the code, close the solution, start new Empty project, add class, paste all the code from the failing file (after deleting everything in the new class), it runs with no error. (Flashes a console for a second and exits, since there are no further instructions.) If the same code works in the new file, how can the other with the exact same code fail?

mhorton at 2007-9-9 > top of Msdn Tech,Visual C#,Visual C# General...
# 2
Whatever was causing the "event log name" error and preventing reinstallation has magicly gone away now. I was able to reinstall, however the issue remains.

Since nobody here knows the problem, I issued a bug report. I also noticed there is a very similar bug for J#, but it has been closed as "unable to reproduce".

mhorton at 2007-9-9 > top of Msdn Tech,Visual C#,Visual C# General...
# 3
mhorton,

It would be great if you could add the links to your Bug's as a reply to this post. So anyone facing similar problems can possiblly track your bug and/or provide votes/feeback on the Product Feedback site.

Regards,
Saurabh Nandu

SaurabhNandu at 2007-9-9 > top of Msdn Tech,Visual C#,Visual C# General...
# 4

Sorry, here is the link to the bug report:
http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx?feedbackid=22823857-bf15-42ae-8571-f0b6e4cbe425

Here is the link to the bug report someone else reported for J#. Even though the platform is different, the error seems very similar:

http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx?feedbackid=69815375-489d-4b20-a7d5-33a06a94997f

mhorton at 2007-9-9 > top of Msdn Tech,Visual C#,Visual C# General...
# 5
I too have been experiencing this issue. See:
http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx?feedbackid=7daa2cb1-ba91-488a-aab3-b1f1ec83a0ed

I found the cause was a project setting in the Debug page: 'Enable the Visual Studio hosting process'. If I uncheck this projects run fine. If it's checked I constantly get this error trying to run anything even blank windows or console projects.

Hope that helps.

J-P at 2007-9-9 > top of Msdn Tech,Visual C#,Visual C# General...
# 6
Hello Guys,

I get the same error in my web project in visual studio 2005 Beta 2. I read your messages but i couldn't find 'Enable the Visual Studio hosting process' section on project setting tab. Could you please send me detailed information about this bug.
Thank you

FatihDurgut at 2007-9-9 > top of Msdn Tech,Visual C#,Visual C# General...
# 7
Sorry I should have said solution settings. Right click on the solution node in the solution explorer and select Properties to bring up the settings tabs in the main code area. You'll find the mentioned setting under the Debug tab.
J-P at 2007-9-9 > top of Msdn Tech,Visual C#,Visual C# General...
# 8
Hello,
I'm using Visual Studio 2005 Beta 2, are you sure that there is a section called 'Enable the Visual Studio hosting process' . at the fallowing link you can find the Print Screen of my option section. http://www.durgut.com/hata.gif
Thank you
FatihDurgut at 2007-9-9 > top of Msdn Tech,Visual C#,Visual C# General...
# 9

Hi,
This is not what I get which seems very similar to the VS2003 property page. Perhaps it depends on the type of solution you are creating. Try a blank windows application. I get a solution property page which is completely new in look and occupies a tab like a code window does, and includes it's own tabs layed out on the left.
My version of VS2005 is 8.0.50215.44 (beta2.050215-4400).
I'm getting this error even when I try to run a blank windows application or console application project if this setting is ticked.
I haven't installed web project development tool to test that.
I can only assume that if you do not get this error running the simplest projects then you are unaffected by what I describe and you may be getting this error for a different reason.
Cheers.

J-P at 2007-9-9 > top of Msdn Tech,Visual C#,Visual C# General...