Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Andreas Kaltenhuber 107 posts 286 karma points
    Jul 22, 2015 @ 08:49
    Andreas Kaltenhuber
    0

    Error merchelloContext NULL

    Hi,

    just copied a merchello powered umbraco site from the production server to localhost and i am getting several errors in the logs. the backend doesn't work too ("Error: Failed to get all settings"):

    1. merchelloContext = NULL on my SurfaceController
    2. Errors regarding Cryptography: System.Web.Security.Cryptography.HomogenizingCryptoServiceWrapper.HomogenizeErrors

    Production Server: Win2008 R2, IIS7, SQL2012 Localhost: IISEXPRESS, SQL2012

    The site was working on localhost, which was the development "server", before.

    thx in advance, andreas

    Umbraco 7.2.6, Merchello 1.8.3

    PS: tried to run the copy on our staging server (win2012 r2, sql 2012) and getting the same errors

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Jul 22, 2015 @ 18:16
    Rusty Swayne
    0

    Hi Andreas,

    This would indicate that the CoreBootManager is failing to instantiate the MerchelloContext singleton. It could be as simple as not having your connection strings correct for you local connection?

    I'm pretty sure this is not an issue with the Merchello code base as Merchello will simply not function without the MerchelloContext.

  • Andreas Kaltenhuber 107 posts 286 karma points
    Jul 23, 2015 @ 07:04
    Andreas Kaltenhuber
    0

    Hi Rusty,

    Database connectionstring is ok as i can access all backend areas without any problems (except merchello). already checked this "several" times.

    Any other ideas?

    thx, Andreas

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Jul 23, 2015 @ 13:37
    Rusty Swayne
    0

    In the Umbraco log, search for a message that says:

    Attempting to initialize Merchello

    Can you post the lines after that message?

  • Andreas Kaltenhuber 107 posts 286 karma points
    Jul 23, 2015 @ 14:44
    Andreas Kaltenhuber
    0

    2015-07-22 10:30:27,113 [11] INFO Merchello.Web.UmbracoApplicationEventHandler - Attempting to initialize Merchello 2015-07-22 10:30:27,127 [11] INFO Umbraco.Core.PluginManager - [T1/D2] Starting resolution types of Merchello.Core.Gateways.GatewayProviderBase 2015-07-22 10:30:27,137 [11] INFO Umbraco.Core.PluginManager - [T1/D2] Completed resolution of types of Merchello.Core.Gateways.GatewayProviderBase, found 6 (took 9ms) 2015-07-22 10:30:27,251 [11] ERROR Merchello.Web.UmbracoApplicationEventHandler - Initialization of Merchello failed System.Security.Cryptography.CryptographicException: Fehler während eines kryptographischen Vorgangs. bei System.Web.Security.Cryptography.HomogenizingCryptoServiceWrapper.HomogenizeErrors(Func2 func, Byte[] input) bei System.Web.Security.Cryptography.HomogenizingCryptoServiceWrapper.Unprotect(Byte[] protectedData) bei System.Web.Security.FormsAuthentication.Decrypt(String encryptedTicket) bei Umbraco.Core.StringExtensions.DecryptWithMachineKey(String value) bei Merchello.Core.Persistence.Factories.GatewayProviderSettingsFactory.BuildEntity(GatewayProviderSettingsDto dto) in c:\Working Repositories\GitHub\Merchello\src\Merchello.Core\Persistence\Factories\GatewayProviderSettingsFactory.cs:Zeile 26. bei Merchello.Core.Persistence.Repositories.GatewayProviderRepository.<PerformGetAll>d__0.MoveNext() in c:\Working Repositories\GitHub\Merchello\src\Merchello.Core\Persistence\Repositories\GatewayProviderRepository.cs:Zeile 56. bei System.Linq.Buffer1..ctor(IEnumerable1 source) bei System.Linq.Enumerable.ToArray[TSource](IEnumerable1 source) bei Merchello.Core.Persistence.Repositories.MerchelloRepositoryBase1.GetAll(Guid[] keys) in c:\Working Repositories\GitHub\Merchello\src\Merchello.Core\Persistence\Repositories\MerchelloRepositoryBase.cs:Zeile 233. bei Merchello.Core.Services.GatewayProviderService.GetAllGatewayProviders() in c:\Working Repositories\GitHub\Merchello\src\Merchello.Core\Services\GatewayProviderService.cs:Zeile 288. bei Merchello.Core.Gateways.GatewayProviderResolver.BuildActivatedGatewayProviderCache() in c:\Working Repositories\GitHub\Merchello\src\Merchello.Core\Gateways\GatewayProviderResolver.cs:Zeile 218. bei Merchello.Core.Gateways.GatewayProviderResolver..ctor(IEnumerable1 values, IGatewayProviderService gatewayProviderService, IRuntimeCacheProvider runtimeCache) in c:\Working Repositories\GitHub\Merchello\src\Merchello.Core\Gateways\GatewayProviderResolver.cs:Zeile 67. bei Merchello.Core.CoreBootManager.InitializeGatewayResolver(IServiceContext serviceContext, CacheHelper cache) in c:\Working Repositories\GitHub\Merchello\src\Merchello.Core\CoreBootManager.cs:Zeile 226. bei Merchello.Core.CoreBootManager.Initialize() in c:\Working Repositories\GitHub\Merchello\src\Merchello.Core\CoreBootManager.cs:Zeile 105. bei Merchello.Web.WebBootManager.Initialize() in c:\Working Repositories\GitHub\Merchello\src\Merchello.Web\WebBootManager.cs:Zeile 49. bei Merchello.Core.MerchelloBootstrapper.Init(BootManagerBase bootManager) in c:\Working Repositories\GitHub\Merchello\src\Merchello.Core\MerchelloBootstrapper.cs:Zeile 18. bei Merchello.Web.UmbracoApplicationEventHandler.ApplicationStarting(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext) in c:\Working Repositories\GitHub\Merchello\src\Merchello.Web\UmbracoApplicationEventHandler.cs:Zeile 59. 2015-07-22 10:30:27,311 [11] INFO Merchello.Web.Search.ExamineEvents - [T1/D2] Initializing Merchello ProductIndex binding events 2015-07-22 10:30:27,455 [11] INFO Merchello.Web.Trees.ServerVariablesParsingEvents - [T1/D2] Initializing Merchello ServerVariablesParsingEvents 2015-07-22 10:30:27,455 [11] INFO Merchello.Web.UmbracoApplicationEventHandler - [T1/D2] Initializing Customer related events 2015-07-22 10:30:27,676 [11] INFO Umbraco.Web.Search.ExamineEvents - [T1/D2] Initializing Examine and binding to business logic events 2015-07-22 10:30:27,676 [11] INFO Umbraco.Web.Search.ExamineEvents - [T1/D2] Adding examine event handlers for index providers: 3 2015-07-22 10:30:27,678 [11] INFO Merchello.Plugin.Payments.Braintree.UmbracoApplicationEvents - [T1/D2] Initializing BrainTree Payment provider events 2015-07-22 10:30:27,683 [11] INFO Merchello.Core.Gateways.GatewayEvents - [T1/D2] Initializing Merchello Warehouse Catalog binding events 2015-07-22 10:30:27,684 [11] INFO Merchello.Core.Gateways.Notification.Monitors.NotificationMonitorEvents - [T1/D2] Initializing Merchello NotificationMonitor binding events 2015-07-22 10:30:27,684 [11] INFO Merchello.Core.Gateways.Notification.Monitors.NotificationMonitorEvents - [T1/D2] Completed Merchello NotificationMonitor binding events 2015-07-22 10:30:27,684 [11] INFO Merchello.Core.Gateways.Notification.Smtp.SmtpProviderEvents - [T1/D2] Initializing SMTP notification gateway provider registration binding events 2015-07-22 10:30:27,685 [11] INFO Merchello.Plugin.Payments.PayPal.PayPalEvents - [T1/D2] Initializing PayPal provider registration binding events

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Jul 23, 2015 @ 15:00
    Rusty Swayne
    102

    Hmm - Merchello uses Umbraco's string extensions to encrypt/decrypt the certain things (including gateway provider settings).

    If you've encrypted these values your production environment and then ported the database back to your local without decrypting them you might see something like this. IF I'm right, you'll need to decrypt them in the back office and then transfer your database again.

    The encryption works off the Machine.key so something you could do in the future is generate your machine key and put that in the web.config so that it is consistent between the two environments.

  • Liam 7 posts 77 karma points
    Aug 15, 2016 @ 18:46
    Liam
    0

    This one just got me going from dev to staging environment. Had to do exactly as Rusty suggested. Decrypt Gateway Provider settings in my dev site and copy DB back over.

  • M N 125 posts 212 karma points
    Sep 19, 2017 @ 22:11
    M N
    0

    Hi Liam,

    Little late, but I think we're experiencing this as well between all our team members, only 1 person actually has a working merchelloContext.

    Any chance you have steps on how to set the machine key for an umbraco site?

    Cheers!

    EDIT - Okay generated a machine key per https://our.umbraco.org/documentation/getting-started/setup/server-setup/load-balancing/.. Now nobody has a merchello context.. Wildly frustrating. I deleted my custom provider from the backend still no dice

  • Son Pham 31 posts 72 karma points
    Jan 11, 2016 @ 12:59
    Son Pham
    0

    Does anyone know exactly which version of Umbraco and Merchello work perfectly from installing to running example store ? Thanks

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Jan 11, 2016 @ 17:05
    Rusty Swayne
    0

    @Son,

    Use the latest version of the Merchello.Bazaar (1.13.3) in Umbraco 7.3.x

  • Son Pham 31 posts 72 karma points
    Jan 12, 2016 @ 15:57
    Son Pham
    0

    Hi Rusty,

    I installed Umbraco 7.3.4 and then install Merchello 1.13.3 and then install Merchello.Bazaar.CombinedInstall_1.13.3 and also Bazaar.StoreOnly.1.13.3

    I got this message "Object reference not set to an instance of an object. " and I can not access my Umbraco any more. Do you know the issue ?

    Thanks

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Jan 12, 2016 @ 16:24
    Rusty Swayne
    0

    Hey Son,

    After you install Umbraco 7.3.4, you can install Merchello.Bazaar.CombinedInstall (without installing Merchello - it'll install both Merchello and the Bazaar).

    The Bazaar.StoreOnly package requires that Merchello is installed separately before installing the front end store (Bazzar). This is beneficial for some people that want to be able to uninstall the front end but leave Merchello installed.

  • Son Pham 31 posts 72 karma points
    Jan 12, 2016 @ 16:52
    Son Pham
    0

    Hi Rusty,

    I just start from beginning the steps are:

    1. Umbraco 7.3.4

    2. Merchello.Bazaar.CombinedInstall 1.13.3

    Everything is installed successfully but when I select Store in Content tab I got this

    Received an error from the server Failed to get colleciton entities

    The 'ObjectContent' type failed to serialize the response body for content type 'application/json; charset=utf-8'.

    EXCEPTION DETAILS:

    System.InvalidOperationException: The 'ObjectContent' type failed to serialize the response body for content type 'application/json; charset=utf-8'.

    If I run app from Visual studio. I got this :

    An exception of type 'System.ArgumentException' occurred in Newtonsoft.Json.dll but was not handled in user code

    Additional information: Can not convert Null to Int32.

    @foreach (var product in Model.GetPropertyValue<>

    Thanks

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Jan 12, 2016 @ 17:14
    Rusty Swayne
    0

    I saw that happen once as well - looks like I need to do some troubleshooting in the installer =)

    To fix, got to the developer section -> Examine Indexes and rebuild the MerchelloProductIndex.

  • Son Pham 31 posts 72 karma points
    Jan 13, 2016 @ 13:58
    Son Pham
    0

    Thank you Rusty. Rebuild Merchello Index has fixed the problem.

Please Sign in or register to post replies

Write your reply to:

Draft