The type or namespace name ‘Optimization’ does not exist in the namespace ‘System.Web’ November 30, 2023 by Tarik I just faced this issue now: I reinstalled the optimization framework and everything worked fine: Install-Package Microsoft.AspNet.Web.Optimization