In Visual Studio, this error occurs:
The object reference is not set to the instance of an object.
It gives the error on the foreach line. Why is this happening?
@foreach (var item in Model)
{
<div class="kitap">
<img src="~/Content/images/sucveceza.png">
<p>@item.KonuBaslik</p>
<a href="">
</a>
}
</div>
}