If you see the following error see the resolution below
Did not find a module by assembly 'EPiServer.GoogleAnalytics, Version=1.10.3.0, Culture=neutral, PublicKeyToken=null'
Parameter name: moduleAssembly
Usually when you first build a project it will build the necessary package updates. In some cases you may not have a package on first load or due to your own changes.
Right click on the solution and click "restore nuget packages."
If this fails, reinstall the package mentioned in the error. If it cannot find the package source do the following.
- Download and run Nuget Package Manager
- Change the feed to the Epi nuget feed.
- Find the appropriate package. In this case I search for Episerver.Google to get the analytics package.
- Download the package to the appropriate machine.
- Open the package sources.
Tools > Nuget Package Manager > Package Manager Settings > Package Sources - Uncheck all package sources not needed.
- Create a new package source and point it to the directory where you saved the package file.
- Right click on the project in question and click manage nuget packages.
- Change the source to the new one you created and under browse find your package.
- Install the package.
Another option is deleting and reinstalling the modules.
- Backup the entire site.
- Delete contents of \modules\protected\
- Run command
update-package -reinstall
to reinstall all packages. This should repopulate the protected\ folder.
Please sign in to leave a comment.