1

I recently performed the following steps on my VirtoCommerce Site:

Updated my Local Environment from 2.9 to 2.10 via Git. Publish to Azure the Manager App. (Overwriting 2.9 on Azure) Publish to Azure the Storefront. (Overwriting 2.9 on Azure)

I got a Typeload error that LibSass_64 couldnt be loaded. Realised my Dev Machine is x64 but the Azure server is x86, so I changed the Build configs in both solutions to x86 and republished with the "remove existing files" setting to clear the x64 dlls.

That solved the typeload error. However now I am getting the following error I am unable to resolve without help. Any help will be greatly appreciated!


Error calling StoreModuleGetStores:

Could not load type 'CacheManager.Core.RuntimeCachingBuilderExtensions' from assembly 'CacheManager.SystemRuntimeCaching, Version=0.7.1.0, Culture=neutral, PublicKeyToken=null'

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) +92
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +101
Owin.Loader.<>c__DisplayClass12.<MakeDelegate>b__b(IAppBuilder builder) +66
Owin.Loader.<>c__DisplayClass1.<LoadImplementation>b__0(IAppBuilder builder) +123
Microsoft.Owin.Host.SystemWeb.<>c__DisplayClass2.<InitializeBlueprint>b__0(IAppBuilder builder) +71
Microsoft.Owin.Host.SystemWeb.OwinAppContext.Initialize(Action`1 startup) +462
Microsoft.Owin.Host.SystemWeb.OwinBuilder.Build(Action`1 startup) +40
Microsoft.Owin.Host.SystemWeb.OwinHttpModule.InitializeBlueprint() +70
System.Threading.LazyInitializer.EnsureInitializedCore(T& target, Boolean& initialized, Object& syncLock, Func`1 valueFactory) +115
Microsoft.Owin.Host.SystemWeb.OwinHttpModule.Init(HttpApplication context) +106
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +534
System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +172
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +352
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +296
dalcam
  • 1,027
  • 11
  • 28

1 Answers1

0

You should not change the build platform. Everything should be compiled for "Any CPU" platform.

The original issue with LibSass_64 has happened because the publishing process has copied LibSass.x64.dll and libsassnet.dll to the bin directory. These assemblies should be deleted from bin and there is a special action in the storefront project to do this. Unfortunately the publishing process either doesn't run this action or copies libsass assemblies to the bin anyway. Need to sort this out.

At the same time the bin directory should contain the LibSassNetProxy.dll, which will load the correct version of libsass assemblies from App_Data directory depending on the platform at runtime.

Dartal
  • 432
  • 2
  • 5
  • I downloaded virtocommerce 2.12.3, 6 days ago. I am trying to install it today now but it does not install the modules because it is giving me an error message "Target Platform version 2.12.4 is incompatible with current 2.12.3". So I wonder just after 6 days, my version is incompatible?? Found no documentation at all that can guide me how to upgrade from 2.12.3 to 2.12.4. Also wondering if I would need to install a module in the future, do I have to upgrade the entire virto to the version that particular module would be compatible with at that time? Any thoughts on this? – Syed Dec 15 '16 at 10:58
  • v2.12.4 was released 9 day ago. Just get the new code and compile it. Afer that you will be able to update all modules. – Dartal Dec 16 '16 at 13:05
  • Thanks! But that would mean I have to do it in the future too? What will happen then to the changes I have made (e.g. developing my own plugin or similar). – Syed Dec 22 '16 at 09:54