This website may use cookies. More info. That's Fine x
Welcome Login

Error: The name 'media' does not exist in the current context


Problem:

mvc-razormedia1

 

 

Solution:

'@' character is a reserved character in mvc razor view templates.

To fix this error, you can escape it by prefixing with @.

Eg:

@@media ( min-width: 767px ) ...

Created on: Thursday, December 18, 2014 by Andrew Sin