Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MVC 4 razor model with multiple angle brackets issue

I am experiencing some issues with asp.net mvc 4 I want to use

@model System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>>

as a model for my view.

For some reason i am getting an error An opening "<" is missing the corresponding closing ">".

I can create separate model which would contains my dictionary as a work around.

But i am just wondering is it a bug?

I was playing with that but cant make it work anyway then just for test i copy my model declaration to the View in MVC 3 project and it is looking good there, so it is something wrong with MVC 4.

like image 699
angularrocks.com Avatar asked Dec 22 '11 12:12

angularrocks.com


1 Answers

I had the same issue and the solution was to re-install the latest ASP.Net MVC 4 framework. I also re-installed ASP.NET Web Pages with Razor Syntax.

like image 143
Darlesson Avatar answered Oct 26 '22 12:10

Darlesson