Pages

Monday, November 3, 2014

#deepstutorials:The type or namespace name 'Required' could not be found



A rookie problem i encountered and wanted to document . Hopefully this saves someone out there some time.  I wasn’t able to resolve it automatically in Visual Studio 2013.

If you hit the errors:

The type or namespace name 'RequiredAttribute' could not be found”

“The type or namespace name 'Required' could not be found”


Make sure you add

using System.ComponentModel.DataAnnotations;

You can refer to this documentation link 


No comments:

Post a Comment