Could someone please clarify something for me. In my ASP.NET MVC 2 app, I\'ve got a BaseViewModel
class which includes the following method:
pu
In case it helps, I've ran into this problem when passing null
into a parameter for a generic TValue
, to get around this you have to cast your null values:
(string)null
(int)null
etc.
I had this same problem, my solution:
In the web.config file :
<compilation debug="true>
had to be changed to
<compilation debug="true" targetFramework="4.0">