Copied to clipboard

Flag this post as spam?

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


  • Patrick B 3 posts 73 karma points
    Aug 09, 2017 @ 18:39
    Patrick B
    0

    'merchelloContext is null' after CryptographicException

    Hey guys,

    I'm struggling with an online-shop I'm currently developing. It was actually almost finished, when I realized the dev-environment was listed on google. I activated the Windows-Authentification, so no one could order the not-correctly listed products.

    It seems like I inserted a new product in one of my 100 tabs that were actually in an older session (when the Login wasn't implemented). Since then, i get an error-message, no matter which page I try to load:

    "Value cannot be null. Parameter name: merchelloContext"

    The merchelloContext-Singleton-Instance seems to not be accessable anymore.

    Errormessage

    Checking the umbraco-log-file revealed the following Error:

    2017-08-03 22:32:40,141 [P3868/D4/T28] 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.FormsAuthentication.Decrypt(String encryptedTicket) bei Umbraco.Core.StringExtensions.DecryptWithMachineKey(String value) bei Merchello.Core.Persistence.Factories.GatewayProviderSettingsFactory.BuildEntity(GatewayProviderSettingsDto dto) bei Merchello.Core.Persistence.Repositories.GatewayProviderRepository.<PerformGetAll>d__5.MoveNext() bei System.Linq.Buffer1..ctor(IEnumerable1 source) bei System.Linq.Enumerable.ToArray[TSource](IEnumerable1 source) bei Merchello.Core.Persistence.Repositories.MerchelloRepositoryBase`1.GetAll(Guid[] keys) bei Merchello.Core.Services.GatewayProviderService.GetAllGatewayProviders() bei Merchello.Core.Gateways.GatewayProviderResolver.BuildActivatedGatewayProviderCache() bei Merchello.Core.CoreBootManager.InitializeGatewayResolver(IServiceContext serviceContext, CacheHelper cache) bei Merchello.Core.CoreBootManager.Initialize() bei Merchello.Web.WebBootManager.Initialize() bei Merchello.Core.MerchelloBootstrapper.Init(BootManagerBase bootManager) bei Merchello.Web.UmbracoApplicationEventHandler.ApplicationStarting(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext)

    Then it became scary: I tried a backup I created 2 weeks ago (application-folder AND database). Same problem. Same Errormessage. I clean-installed Umbraco & Merchello(incl. FastTrack). The Tshirt-shop worked fine. When I updated the connectionstring to the backuped database, the error appeared again.

    It seems like the Cryptographic-Exception somehow destroyed some kind of serverside cookie I'm not able to find. I'm almost at that point where I start again from scratch, but then I would need to re-enter all 268 products (incl. product-variants)... I already tried rebuilding the indexes @Devs->Examine Management (as Rusty suggested in a related problem), but nothing changed. Adding a machine-Key also didn't change anything. I also tried using multiple devices and deleted my cookies multiple times (in different browsers).

    Im using Umbraco 7.5.11 with Merchello 2.5.0

    I hope you guys can help me safe some time, I'm really desperate.. Thank you in advance!

  • Patrick B 3 posts 73 karma points
    Apr 03, 2019 @ 23:00
    Patrick B
    0

    I just happened to move the shop to another server. The last time (when I created this thread), I just re-entered all products. NOW, after migrating the whole page, i encounter the exactly same error.. Is there still no one with any clue or idea of what to try out?

Please Sign in or register to post replies

Write your reply to:

Draft