oliIntraz wrote:Hi all, I am also having the same problem, as soon as I copy the Shop All template from nop-templates.com to the plugins folder and reload the list of plugins in nopCommerce admin I get a 502.5 error. The error message in stdout log is:
------------------------------------------------------------------------------
Application startup exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at <PrivateImplementationDetails>{B12874A5-5A3C-4B74-A65B-504AE7B906C1}.F4819236-3A5D-4A20-9531-ECB331A264E3.(Int32 , Int32 , Int32 )
at <PrivateImplementationDetails>{B12874A5-5A3C-4B74-A65B-504AE7B906C1}.F4819236-3A5D-4A20-9531-ECB331A264E3.b()
at SevenSpikes.Nop.Plugins.Core.Infrastructure.DependencyRegistrar..ctor()
Hi guys,
The AccessViolationException issue turned out to be caused by an option ii the obfuscation tool that we are using.
The issue used to occur only in some Azure sites and
ONLY AFTER you implement the fix explained in the initial post in this thread (disabling overlapped recycle).
We have already removed this obfuscation option (we still obfuscate our assemblies as we have always done) and now everything works normally on these Azure websites.
So for those of you that ever have this error above (AccessViolationException) please simply download the latest version of your product from our website and update the plugins' dll files.
p.s: Many thanks to
mgustafsson for assisting us for reproducing it on their Azure website.
Thanks,
Boyko