We moved an ASP.NET 3.5 application from IIS Server 6.5 yo 7.5 and then this error starts to show.

Solution: Change the associated application pool’s ASP.NET framework version from 4.0 to 2.0.