Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Unable to find a module by assembly 'Episerver.Marketing.Connector.Silverpop'

Vote:
 

Hi, 

I am working upon a referencing issue, one of our projects depends upon the 'Episerver.Marketing.Connector.Silverpop' addon.

When this project is then referenced by Commerce Manager it is returning the following error:

Unable to find a module by assembly 'Episerver.Marketing.Connector.Silverpop, Version=4.2.0.0, Culture=neutral, PublicKeyToken=null'
Parameter name: moduleAssembly

The stack trace is as follows:

[ArgumentException: Unable to find a module by assembly 'Episerver.Marketing.Connector.Silverpop, Version=4.2.0.0, Culture=neutral, PublicKeyToken=null'
Parameter name: moduleAssembly]
   EPiServer.Shell.Paths.ToResource(Assembly moduleAssembly, String moduleRelativeResourcePath) +325
   EPiServer.MarketingAutomationIntegration.Helpers.ModuleHelper.ToPhysicalVPPResource(String virtualpath) +26
   Episerver.Marketing.Connector.Silverpop.SilverpopInitializationModule.InitializationEngine_InitComplete(Object sender, EventArgs e) +181

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
   System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) +0
   System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) +132
   System.Delegate.DynamicInvokeImpl(Object[] args) +160
   EPiServer.Framework.Initialization.InitializationEngine.OnInitComplete() +312
   EPiServer.Framework.Initialization.InitializationEngine.ExecuteTransition(Boolean continueTransitions) +208
   EPiServer.Framework.Initialization.InitializationModule.EngineExecute(HostType hostType, Action`1 engineAction) +423
   EPiServer.Framework.Initialization.InitializationModule.FrameworkInitialization(HostType hostType) +226
   EPiServer.Global..ctor() +42
   ASP.global_asax..ctor() in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\d545f414\73cd510c\App_global.asax.dnue-c4f.0.cs:0

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
   System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) +0
   System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +142
   System.Activator.CreateInstance(Type type, Boolean nonPublic) +107
   System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark) +1476
   System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +186
   System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture) +28
   System.Web.HttpRuntime.CreateNonPublicInstance(Type type, Object[] args) +82
   System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +174
   System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +347

[HttpException (0x80004005): Exception has been thrown by the target of an invocation.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +552
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +122
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +737

My understanding is that when this addon is initializing it is looking for the 'Episerver.Marketing.Connector.Silverpop' folder inside the modules > protected folder. After placing the folder there manually the issue is still occuring.

Has anyone experienced anything similar? or know a way to resolve?

Thanks

Paul

#248879
Feb 19, 2021 16:00
Vote:
 

Do you have this add-on dll in the bin?

#248938
Edited, Feb 21, 2021 19:02
Vote:
 

Hi Naveed,

Yes the dll is in the bin folder.

I am guessing either the the 'Episerver.Marketing.Connector.Silverpop' and 'Episerver.Marketing.Connector' folders are not in the modules/_protected or they are not referenced correctly under episerver.shell>protectedmodules

Would that sound right?

Paul

#248968
Feb 22, 2021 9:33
Vote:
 

Hey, I finally got this resolved.

I have had to rework the project references a little to overcome the issue.

#248976
Feb 22, 2021 12:21
* 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.