| 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. 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() |

AccessViolationError, how to fix?
Rj3
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
Kelly Wilkerson
Sorry, here is the link to the bug report:
http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx feedbackid=22823857-bf15-42ae-8571-f0b6e4cbe425< xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
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
Yeow&#35;
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.
jaimemontoya
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
Umachandar Jayachandran - MS
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
ivancmz
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
outtalimitz
hysenlici
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".
Lats
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.