Episerver upgrade: Could not find a part of the path {wwwroot}\ClientResources\ClientResources\packages.config.

Just a short note on an exception I got after upgrading the Episerver NuGet packages on a few of my client’s websites. All of them worked perfectly, except the one that gave me the following message:

1Could not find a part of the path {wwwroot}\ClientResources\ClientResources\packages.config.

It is the package.config inside the Shell.zip that it’s looking for. It turns out that the package installation had removed a few lines from the configuration file.

1<episerver.shell>
2  <protectedModules>
3    <add name="Shell" />
4    <add name="CMS" />
1<system.webServer>
2  <modules>
3    <add name="ShellRoutingModule" type="EPiServer.Shell.Web.Routing.ShellRoutingModule, EPiServer.Shell" />
1<system.web>
2  <pages>
3    <namespaces>
4      <add namespace="EPiServer.Shell.Web.Mvc.Html" />