This issue has many solutions, please read all answers below, they might help you solve your problem too. If you find a new way to solve this, please document in you
Just in case it helps anybody, I had the same issue, but found it was caused by a dependent assembly of WebGrease, namely Antlr3. It had added the following to runtime element in web.config when installing via NuGet: