Try our conversational search powered by Generative AI!

Error: Did not find a module by assembly 'EPiServer.GoogleAnalytics, Version=, Parameter name: moduleAssembly


Episerver 11

My site was working just fine.  I had Episerver support push production down to the integration, including DB and blobs.  The site was working just fine.  I did a push of code from Visual Studio using Web Deploy and now get the following error:

Did not find a module by assembly 'EPiServer.GoogleAnalytics, Version=, Culture=neutral, PublicKeyToken=null'
Parameter name: moduleAssembly

I've seen someone else with the same issue but on an older version of Episerver. but his solution did not work for me. Nothing seems to work.  Any ideas?

Jun 09, 2020 20:47

Yes.  There are no failed project references.  EPiServer.GoogleAnalytics package is listed as "installed" in the Nuget package manager, v2.3.1.

The EPiServer.GoogleAnalytics.dll is in the bin folder after building the project.  I also see the EPiServer.GoogleAnalytics folder in modules\_protected folder. 

The site runs just fine in Visual Studio, just not on the web after a deploy.

Jun 10, 2020 16:28

Do you mind setup the site locally and not running this from visual studio.

You can refer my blog if needed- 

And then give it a try.

Jun 10, 2020 16:35

I had already done that as a test.  Did a local file publish and created an IIS site to point to that output.  Compiles and runs just fine.  FYI, the local site is pointing to the Integration database hosted at Azure.

Edited, Jun 10, 2020 17:49

Hi Eric,

Did you check the DLL version? It might be possible that DLL version is different.

Jun 10, 2020 17:53

Just checked the file in the bin folder.  It is the correct version,

This was working before, and is working in production now.  Not sure why it is broken on this publish.

Jun 10, 2020 18:06

Now only one thing I can think about uninstalling this module and publish the complete solution again.

FYI - Please restart the web app once you deployed the code

Jun 10, 2020 18:12

I've removed the libraries(s) via NuGet.  I say libraries since removing EPiServer.GoogleAnalytics causes all other libraries in the modules\_protected folder to throw the same error.  This includes Episerver.LiveMonitor, Episerver.Forms, etc.  I re-deployed and restarted the web app manually via the paasportal.  Still get the same error.  Seems like the path to the modules\_protected folder is not being found for some reason.

Any other ideas?

Jun 12, 2020 18:27
Jun 13, 2020 3:41

Tried that.  Didn't work.  I did try this and it seemed to work.  The modules loaded, but then it couldn't find the LiveMonitor.config file which is in the modules\_protected\EPiServer.LiveMonitor folder so it seems to be a path issue.

<add name="EPiServer.GoogleAnalytics" >
		<add assembly="EPiServer.GoogleAnalytics" />
<add name="EPiServer.LiveMonitor" >
		<add assembly="EPiServer.LiveMonitor" />

I also tried uninstalling the Episerver.Packaging assembly, which had no other dependencies.  That didn't work.

I added Episerver.Packaging back, then ran the Move-EPiServerProtectedModules command, but it said the site was already configured to be in the /modules/_protected location.

Jun 15, 2020 16:32

So, just to follow up on this thread.  I was never able to figure out exactly what was wrong with this.  I had to step way back and reverse several commits and was able to get back to a working model.  I then updated the code from all the commits and it is all working again.  Now sure what caused the issue.  Looks like it may have been a Visual Studio glitch?  Either way, not able to mark an "accepted solution" but thanks for all the input.

Jul 28, 2020 16:01

Another follow up on this kind of errors. 

Ensure that the module.config is present in the module folder in modules\_protected\xyz\.

Dec 07, 2023 12:28
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.