Data Annotations not firing for compiled Views

Nov 24, 2011 at 4:51 PM

Hi, I have some generic Views compiled into a seperate assembly and some other bespoke views in the Views folder of the Web Site.

All the View Models are also in their own seperate assembly. The View Models which have Data Annotations work as expected against the Views in the Web Site but do not fire for any of the Views in the compiled assembly. I assume I don't have to do anything specific with the models to get the data annotations to work with the compiled Views? Tried putting the models into the same assembly as the compiled Views (on the off chance) but that didn't make any difference.

Has anybody got any suggestions or things to look for?? TA

Nov 29, 2011 at 5:18 PM

I'm not sure I completely understand your scenario. Would you be able to put together a minimal repro app that demonstrates the issue? Thanks!