0

I just recently installed the MVC beta. However, I assumed because the versioning numbers have changed and because it now uses the GAC instead of the bin folder that it wouldn't break existing applications.

However, it has.

What steps do I need to follow to ensure my existing preview 3 applications use a bin copy of the .dlls and are not broken by the installation of the beta?

Matt Mitchell
  • 40,943
  • 35
  • 118
  • 185

2 Answers2

3

ASP.NET MVC beta is also bin-deployable, Move the following DLL's from GAC to the bin folder of your app

* System.Web.Mvc
* System.Web.Routing
* System.Web.Abstractions

Check this article for more information

Raj
  • 636
  • 1
  • 8
  • 12
2

You'll need to force uninstall (gacutil /u /f System.Web.Mvc) the Beta DLL from the GAC, and then use bin deployment for all versions (including the beta).

Brad Wilson
  • 67,914
  • 9
  • 74
  • 83
  • Thanks, I was aware it was bin-deployable, just didn't realise bin deployment and GAC were exclusive. Interestingly, phil haack mentions that gacutil wasn't suitable in the link rajlogs posted. – Matt Mitchell Nov 06 '08 at 21:41
  • Unless /f overrides that problem :-) – Matt Mitchell Nov 06 '08 at 21:41
  • You can use a newer version from bin, but not an older one, and all the pre-beta versions were 0.0 whereas the beta is 1.0, so the presence of 1.0 in the GAC invalidates the 0.0 in bin. – Brad Wilson Nov 09 '08 at 01:43
  • Thanks - I wish I could spend some rep or something to vote this as accepted answer too because that little comment answered my question - just feel bad taking the accepted answer from a low rep :-) – Matt Mitchell Nov 10 '08 at 23:03
  • Hmm gacutil doesn't work for the reasons outlined in the link rajlogs posted, so I'll have to uninstall MVC, but then I'll lose templates and stuff won't I? – Matt Mitchell Nov 10 '08 at 23:16
  • http://dylanbeattie.blogspot.com/2008/11/working-on-aspnet-mvc-beta-and-preview.html is helpful. – Matt Mitchell Nov 10 '08 at 23:23