Why does Visual Studio crash opening ASPX with MVC RC1

前端 未结 12 1358
抹茶落季
抹茶落季 2020-12-24 02:36
  • Upgraded from MVC Beta to MVC RC1.
  • Re-pointed all references in the project to point to the new assemblies
  • Rebooted
  • Everything compiles (and
相关标签:
12条回答
  • 2020-12-24 02:50

    I finally (after a fews days of trying everything) got it resolved by uninstalling the Spark View Engine add-in, which crashed when opening .aspx and .js files!

    0 讨论(0)
  • 2020-12-24 02:52

    This occurred for me after setting the reference to System.Web.Mvc to Copy Local = True. This placed the System.Web.Mvc.dll file in my bin folder.

    The next time I opened any aspx pages Visual Studio crashed. Changing the dll in the bin to System.Web.Mvc.dll.bak fixed the problem.

    0 讨论(0)
  • 2020-12-24 02:55

    I've had problems like that before. It was the webform editor. If you right-click the aspx file and choose "open with..." and select Html-editor the ide will most likely not crash on you.

    Try disabling addIns one by one.

    For me it was a conflict between gallio and testdriven.net I think.

    0 讨论(0)
  • 2020-12-24 02:55

    I got the exact same error. At first I thought it was the Spark View Engine add-in (because it crashed opening views) but after Christian's comment about Gallio and TestDriven.NET (I have both) I uninstalled Gallio and now it works.

    0 讨论(0)
  • 2020-12-24 02:59

    I'm having the same problem and have posted a reply on the official ASP.NET MVC forum at http://forums.asp.net/t/1378448.aspx

    I'm not sure, but are you also seeing reference to the Html helpers not showing up in the views (when they don't crash)?

    I don't have Gallio installed, but I do have Resharper. I'll see if disabling that helps (although that would cause me a lot of anguish).

    Update: Resharper wasn't the issue, but rather the plugin "Huagati DBML/EDMX Tools." It seems some plugins might be conflicting and I encourage people to disable all plugins as a preliminary step in debugging the crashes.

    0 讨论(0)
  • 2020-12-24 03:00

    I had to remove the PowerCommands add-in to get VS working again.

    0 讨论(0)
提交回复
热议问题