I'm having an issue with launching a MVC4 application with the Twitter bootstrap.
In VS 2012, I created a new empty MVC4 application, installed the following packages:
- Install-Package twitter.bootstrap.mvc4
- Install-Package twitter.bootstrap.mvc4.sample
Seems like some navigation route options-related issues, as I am going through these few turorials Link 1 and Link 2.
In reading the note about possible compile issues, I restarted the solution, but errors I'm receiving aren't the ones in the readme and are focused around the NavigationRouteOptions
, NavigationRouteFilters
, RouteValueDictionary
, FilterToken
and HasFilterToken
:
'System.Web.Routing.RouteValueDictionary' does not contain a definition for 'HasFilterToken' and no extension method 'HasFilterToken' accepting a
first argument of type 'System.Web.Routing.RouteValueDictionary' could be found (are you missing a using directive or an assembly reference?)
...\AdministrationRouteFilter.cs 18
'System.Web.Routing.RouteValueDictionary' does not contain a definition for 'FilterToken' and no extension method 'FilterToken' accepting a
first argument of type 'System.Web.Routing.RouteValueDictionary' could be found (are you missing a using directive or an assembly reference?)
..\AdministrationRouteFilter.cs 20
The name 'NavigationRouteFilters' does not exist in the current context
'NavigationRouteOptions' could not be found (are you missing a using directive or an assembly reference?)
I have confirmed that I do have navigationroutes.mvc4
Nuget package installed as well.
Is this only working in VS 2013?
The Nuget packages are dated October 26, 2013.
Assistance appreciated.
It seems there is already a discussion about the error in github
try uninstalling 1.1.100 and install 1.0.90 versions in the following order.
Good morning fellas, i have run into the exact same issue, and at least for me, this worked>
instead of installing twetter.bootstrap, just install the bootstrap package, because it looks like with the release of vs2013, they just handed the package over, to MS maintenance.
so, uninstall your current bootstrap version, (the twitter one) and just install general bootstrap. (or be sure to be installing version 3.0.2)
note that this fix, applies to VS2k12.
For me this tutorial about how to setup ASP.NET MVC 4 and Twitter Bootstrap works fine: https://www.macaw.nl/weblog/2013/5/setting-up-a-solution-with-mvc4-and-twitter-bootstrap
Muthu's solution works if you create an VS2012 project (Basic --- NOT the Internet!), then add the css files in the bootstrapLayout.basic.cshtml (which you will find in the shared folder) and add the Javascript files at the bottom of bootstrapLayout.basic.cshtml. Here is my bootstraplayout.basic.cshtml. Note... the order of the script files is important (Good luck!) ... and THANKS Mithu!