angularconsulting.au
angularconsulting.au

Reputation: 28309

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.

Upvotes: 7

Views: 1969

Answers (1)

Darlesson
Darlesson

Reputation: 6162

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.

Upvotes: 3

Related Questions