How to fix “The type or namespace name ‘Optimization’ does not exist in the namespace ‘System.Web’ (are you missing an assembly reference?)

When you run an application created on asp .net, you get following error Server Error in ‘/’ Application. Compilation Error Description: An error occurred during the compilation of a resource required to service this...