The name ‘ViewBag’ does not exist in the current context – Visual Studio 2015

I had this issue despite having all the correct configuration. It turned out to be some bad files in the Component Cache, preventing the Razor views from recognising ViewBag, Model, and HtmlHelpers. Deleting these files solved the problem (good versions of these files were created next time I opened Visual Studio). The files are located … Read more

debug=true in web.config = BAD thing?

We’re seeing lots of virtual memory fragmentation and out of memory errors and then it hits the 3GB limit. The compilation debug is set to true in the web.config but I get different answers from everyone i ask, does debug set to true cause each aspx to compile into random areas of ram thus fragmenting … Read more

What is WebResource.axd?

WebResource.axd provides access to embedded resources within a project. It’s a handler that enables control and page developers to download resources that are embedded in an assembly to the end user. You include WebResources in your AssemblyInfo: Then you can get an include path for your Page using the following code: Then to add the … Read more