views:

179

answers:

3

Does anyone have the issue with Resharper where opening a solution with MVC projects causes Visual studio to close/crash? No Errors, no warning, just close.

To fix the problem, I have to delete the bin and obj folders from the MVC project directory which allows the solution to be opened again.

When the solution is loaded, sometimes opening a .aspx/ascx file will close visual studio too.

I've never lost any work from this other than the occasional mismatched project/file system.

Any help is greatly appreciated.

+1  A: 

Which version of R# are you using? I suggest

  1. first trying it out with the latest official R# version
  2. if that doesn't help, try with some of the R# nightly builds

R# can be unstable, in general - I've downloaded the latest official version yesterday and it constantly reports exceptions (not fatal ones though). The latest nightly build seems to be more stable.

Igor Brejc
4.5 - i think i'm using the latest
CVertex
I'm not talking about the major version (4.5), but of the build number etc...
Igor Brejc
+1  A: 

Have you got PowerCommands installed? Try uninstalling/disabling and see if everything works. In fact, try this for each of your VS addins.

mcintyre321
Is PowerTools a Visual studio plugin or windows app?
CVertex
whoops i meant http://code.msdn.microsoft.com/PowerCommandsI came across a VS bug aages ago where it jumped out of the app that was caused by a combination of PowerCommands and the order of something in the web.config. Good times.
mcintyre321
I don't have PowerCommands, and I've narrowed it down (by disabling each addin) to R# 4.5. R# is definitely the culprit
CVertex
+1  A: 

This was happening for me too (I also have PowerCommands and R# 4.5).

This question has quite a few different suggestions you could try: 500696 - why-does-visual-studio-crash-opening-aspx-with-mvc-rc1

I basically followed the steps outlined by Steve Mason by doing a 'Clean' of my solution and the ngen update step.

I seem to be OK for now (fingers crossed)...

rohancragg
Hey! the ngen step felt like it did something. Whatever it did it improved performance of opening aspx/ascx. Not sure yet if it's solved my crash issue (as it was somewhat unpredictable), but this is definitely the best answer!
CVertex