After upgrading to webgrease 1.5.1.25624 from nuget, System.IO.FileLoadException is coming

Force uninstall the package using Package Manager Console

uninstall-package -f WebGrease

then install the previous version 1.3.0 using the following command

install-package WebGrease -Version 1.3.0

Open your Web.config file and replace below dependency under runtime tag

<dependentAssembly>
    <assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" culture="neutral" />
    <bindingRedirect oldVersion="0.0.0.0-1.3.0.0" newVersion="1.3.0.0" />

Leave a Comment