Hello everyone,
I started a project to leran mvc structure. I want to add a login panel first. Whatever, the problem is; I wamt to use Bootstrap.
I searched and used Package MAnager Console.
First I created an empty ASP.NET MVC 4 project
Second I used Package Manager Console and typed;
install-package twitter.bootstrap.mvc4 (completed succesfully)
install-package twitter.bootstrap.mvc4.sample(completed succesfully)
After those installiation I have seen a readme.txt
When I run the project I am getting NullReferenceException: Object reference not set to an instance of an object.
public static object GetId(this object model)
{
return model.GetType().GetProperty(model.IdentifierPropertyName()).GetValue(model,new object[0]);
}
I have searched but couldn't find any solution. Could you help me ?
Solved above problem. We need to add HomeController (default controller) and an Index View for the default controller.
The big problem; bootstrap does not work. Namely, there is no stil or any other thing. How could I activate bootstrap ?