Wednesday, May 7, 2014

CS0103: The name 'Styles' does not exist in the current context

When working with "Hello World" program of MVC5, I got the following error -

"CS0103: The name 'Styles' does not exist in the current context"

Resolution was adding the following namespace to the web.config file for the Views folder.

  <add namespace="System.Web.Optimization"/>

More information on the name space - is here.


No comments: