Howdy, I noticed that Visual Studio crashed when I tried to open a .SQL file. Perhaps this was due to me installing SQL SERVER 2008 last week. Anyway to overcome the issue I repaired Visual Studio using the install disc. One hour later and a couple of reboots the issue remained. However now the thing crashes as soon as I select a project!
Here's what the event viewer says:
EventType clr20r3, P1 devenv.exe, P2 10.0.40219.1, P3 4d5f2a73, P4 microsoft.visualstudio.editor.implementation, P5 10.0.0.0, P6 4d5f2b24, P7 d2, P8 9a, P9 system.nullreferenceexception, P10 NIL.
I'm starting to lose the will to live.
With Regards to Andrei Drynov's answer / comment **
Okay, the service pack is on there, the contents of the SQL file are irrelevant as the files opened with ease previously and it happens on that file type not a specific file also the crashing happens regardless of the project/solution I select? I do agree that I am being dramatic!
After starting in safe mode **
I got the following error
"An exception was encountered while constructing the content of this frame. This information is also logged by running the application with the /log parameter on the command line, which stores results in "C:\Documents and Settings\XXXXXXX\Application Data\Microsoft\VisualStudio\10.0\ActivityLog.xml".
Exception details: System.UnauthorizedAccessException: Package 'Attrice.TeamFoundation.Sidekicks.VisualStudio.MainPackage, Attrice.TeamFoundation.Sidekicks.Package.10, Version=3.0.3.1, Culture=neutral, PublicKeyToken=14bece0700b6dc89' failed to load. at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo) at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode) at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.GetPackage() at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.ConstructContent()
I then got the following
Microsoft Visual Studio
'C:\Dev\XXXXXX.Deploy.wdproj' cannot be opened because its project type (.wdproj) is not supported by this version of the application.
To open it, please use a version that supports this type of project.
So I'll reinstall the Visual Studio® 2010 Web Deployment Projects to see if that works? How odd.
If you experience crashes of Visual Studio, typically when working with a very large solution, your IDE might be out of virtual memory. Typical indicators of the problem include a "one or more errors occurred" message, "the process appears to be deadlocked" message, and OutOfMemory exception in a crash dump.
Use Visual Studio normally to reproduce the crash, once crash occurs let all Windows crash dialogs finish processing. Go to %LOCALAPPDATA%\CrashDumps and locate the latest dump file for devenv.exe process. You can then attach this file to the feedback issue.
This worked a treat!
Thank God!
Visual Studio 2010 hangs up when opening a .sql file
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With