This question already has an answer here:

i am getting a strange error in a Web applicaton mvc project, in razor view i am getting NullReferenceException even object is not null.

here is link of screenshot of error. [screenshot of error]

Things those i already tried:

  1. Cleaned/Rebuild solution and project.
  2. Deleted Temporary ASP.NET Files.
  3. Deleted View, Renamed View.
  4. Deleted Obj folder.
  5. Changed build config to Debug/Release.

None of these helped.

Please help me to solve this.

Related posts

Recent Viewed