kevin222

VS2005 crashes if I open or create any C# project - command line, windows app, whatever.

I have tried, thus far...

- Uninstalling and reinstalling VS2005

- Repairing my installation

- Uninstalling and reinstalling the .NET 2.0 framework

Any suggestions

This doesn't affect web development, just C#. It seems to create the project, open it, then immediately close.

Thanks...



Re: Visual Studio Setup and Installation VS2005 crashes with any new or opened C# project

Gabriel Lozano-Moran

Hello Keving, look in the Application Event log for relevant error entries to this problem like faulting modules in devenv.exe and post them here please. Did you install specific C# add-ins like ReSharper or anything like that

Try starting Visual Studio in safe mode by holding the left <shift> key while you start it up and try again.






Re: Visual Studio Setup and Installation VS2005 crashes with any new or opened C# project

kevin222

Gabriel, thanks for the response. Any help would be appreciated.

I restarted in safe mode, which did not address the problem. I looked in the application event log, and there are two consecutive events there. First is the error with devenv.exe, and second is an error with the .NET Runtime.

Faulting application devenv.exe, version 8.0.50727.42, stamp 4333e699, faulting module unknown, version 0.0.0.0, stamp 00000000, debug 0, fault address 0x0000000f.

.NET Runtime version 2.0.50727.42 - Fatal Execution Engine Error (7A2B45A2) (0)

This is a consistent, repeatable problem - and as I stated in the earlier post, I have already tried reinstalling the .Net 2.0 framework, although I did not do any registry key cleaning or the like.

Any suggestions

Thanks!





Re: Visual Studio Setup and Installation VS2005 crashes with any new or opened C# project

kevin222

OK, ran Process Monitor, and this is the last step before threads and files start closing:

103549 8:27:30.0508740 AM devenv.exe 3340 ReadFile C:\Program Files\Microsoft Visual Studio 8\VC#\VCSPackages\cslangsvc.dll SUCCESS Offset: 590,848, Length: 8,192, I/O Flags: Non-cached, Paging I/O, Synchronous Paging I/O

Does this mean it's a problem with the cslangsvc.dll Should I unregister and re-register it





Re: Visual Studio Setup and Installation VS2005 crashes with any new or opened C# project

Gabriel Lozano-Moran

Is this something that you can reproduce over and over again Have you tried other solutions Did you install Visual Studio 2005 Service Pack 1 because there is new version of the cslangsvc.dll file in the Service Pack If you have other PC's where this problems do not occur take compare the version numbers of cslangsvc.dll.




Re: Visual Studio Setup and Installation VS2005 crashes with any new or opened C# project

kevin222

This is 100% repeatable, unfortunately. I started getting this problem originally under SP1. I have now uninstalled everything, and am in the process of removing registry keys. I'm going to reinstall VS2005, apply SP1, and see what happens. I have tried taking a colleague's (different) version of the dll and registering it instead of my version - no improvements there.

Any other advice





Re: Visual Studio Setup and Installation VS2005 crashes with any new or opened C# project

Gabriel Lozano-Moran

if that does not work I suggest that you submit a report on the MSDN Feedback web site:






Re: Visual Studio Setup and Installation VS2005 crashes with any new or opened C# project

kevin222

It still fails. This is impacting my work. Feedback posted here:

https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx FeedbackID=273104





Re: Visual Studio Setup and Installation VS2005 crashes with any new or opened C# project

kevin222

It seems Microsoft won't address or even give any advice on my issue with the C# framework in VS2005. I have reinstalled everything, applied every patch, started in every imaginable safe mode, re-registered every .dll, and am stuck with a non-functional product.

Anyone have any further advice before I reimage my laptop and spend a week reconstructing it

https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx FeedbackID=273104

Thanks....





Re: Visual Studio Setup and Installation VS2005 crashes with any new or opened C# project

Gabriel Lozano-Moran

If this is caused by another tool, add-in, component, software or whatever chances are that you will encounter the same issue after a full reinstall. I am sorry that I cannot help but if even reinstalling Visual Studio nor the .NET Framework helps that I don't know what else you could try. Maybe you could run the system file checker with sfc /sannow. If possible I recommend that you create a Virtual Machine for either development or to perform a test reinstall first.






Re: Visual Studio Setup and Installation VS2005 crashes with any new or opened C# project

kevin222

OK, now I've done the following:

Reimaged my Dell Latitude D820 laptop with Windows XP Pro SP2

Installed all windows updates

Installed Visual Studio 2005, and rebooted

Installed SP1 from the April MSDN disk, and rebooted

Checked for any other updates, and rebooted

Created a C# Windows Console application - and my machine CRASHED.

The only other thing on this machine that MAY have an impact is Office 2007 - could that cause a conflict in the C# classes

Any advice at all This is definitely a repeatable bug at this point.





Re: Visual Studio Setup and Installation VS2005 crashes with any new or opened C# project

Gabriel Lozano-Moran

You should try this step by step from what I read you have installed everything on only after you have finished installing everything have you tried to create a C# Console App. If this is a Dell then you should look at the tool named The PC Decrapifier.




Re: Visual Studio Setup and Installation VS2005 crashes with any new or opened C# project

Feckless

I have exactly the same problem as you. No C# project will load, resulting in the IDE crashing and the following 2 entries in the App Event Log:

Event Type: Error

Event Source: Microsoft Visual Studio

Event Category: None

Event ID: 1000

Date: 23/04/2007

Time: 11:50:56

User: N/A

Computer: MyCompName

Description:

Faulting application devenv.exe, version 8.0.50727.762, stamp 45716759, faulting module unknown, version 0.0.0.0, stamp 00000000, debug 0, fault address 0x00000008.

Event Type: Error

Event Source: .NET Runtime

Event Category: None

Event ID: 1023

Date: 23/04/2007

Time: 11:51:04

User: N/A

Computer: MyCompName

Description:

.NET Runtime version 2.0.50727.42 - Fatal Execution Engine Error (7A2B45A2) (0)

However, VB projects load without crashing the IDE as do most C++ projects. Please let me know if this is your experience too. Also, you mentioned you did a fresh install of XP with sp2 and VS2005, but then mention Office 2007 is also installed. Please clarify if you installed any other programs (other than VS2005) when you rebuilt the PC as I can install VS2005 on a fresh XP sp2 install and the problem does not appear. It is only after a "standard business configuration" script (which installs several core applications e.g. Flash, Winzip 10, Acrobat Reader, etc) is applied that the error is reproduced. Perhaps we can identify the same program or dll causing the problem

Cheers





Re: Visual Studio Setup and Installation VS2005 crashes with any new or opened C# project

Gabriel Lozano-Moran

Hello Feckless, at the customer i currently work for there was someone having exact the same issue. This was caused by the ReSharper add-in, after her reinstalled a newer version the problem was solved.




Re: Visual Studio Setup and Installation VS2005 crashes with any new or opened C# project

Feckless

Hi Gabriel,

Thanks for the info. I will have a look but as far as I know there are no add-ins loaded for a default installation of VS2005. The "standard business script" applications I referred to are as follows:

  • WinZip 10
  • Adobe Reader
  • Visio 2007 Viewer
  • Citrix ICA Client 9.2
  • Adobe Shockwave 10.1.3 & Flash 9.0.16
  • Sun JRE 1.5.0_10
  • MS Office 2003 inc Sp1/Sp2 & Webcomponents 2003
  • MS Office 2003 compatibility pack for 2007 file formats
  • MS Netmeeting 3.01
  • Trend Micro OfficeScan
  • Windows Installer 3.1.4

and that's about it. I'll let you know if I find anything unusual in terms of add-ins.