New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Current has not been initialized on Merchello.Core #2203

Open
ivankrzak opened this Issue Dec 19, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@ivankrzak
Copy link

ivankrzak commented Dec 19, 2018

Hello ,
Hello, Yesterday guys from hosting migrated customers website to a new Windows server, from then we are getting this error :

Current has not been initialized on Merchello.Core.EntityCollections.EntityCollectionProviderResolver. You must initialize Current before trying to read it.
https://wolfpackclth.com/shop

Im getting these logs and cant wrap my head around

2018-12-19 18:43:25,715 [P11168/D2/T1] INFO Merchello.Web.UmbracoApplicationEventHandler - Attempting to initialize Merchello 2018-12-19 18:43:25,730 [P11168/D2/T1] INFO Merchello.Web.WebBootManager - Verifying Merchello Database is present. 2018-12-19 18:43:26,855 [P11168/D2/T1] INFO Merchello.Core.CoreBootManager - Initializing Merchello GatewayResolver 2018-12-19 18:43:26,855 [P11168/D2/T1] INFO Umbraco.Core.PluginManager - Starting resolution types of Merchello.Core.Gateways.GatewayProviderBase 2018-12-19 18:43:26,855 [P11168/D2/T1] INFO Umbraco.Core.PluginManager - Completed resolution of types of Merchello.Core.Gateways.GatewayProviderBase, found 0 (took 9ms) 2018-12-19 18:43:26,918 [P11168/D2/T1] ERROR Merchello.Web.UmbracoApplicationEventHandler - Initialization of Merchello failed System.Security.Cryptography.CryptographicException: Error occurred during a cryptographic operation. at System.Web.Security.Cryptography.HomogenizingCryptoServiceWrapper.HomogenizeErrors(Func2 func, Byte[] input)
at System.Web.Security.FormsAuthentication.Decrypt(String encryptedTicket)
at Umbraco.Core.StringExtensions.DecryptWithMachineKey(String value)
at Merchello.Core.Persistence.Factories.GatewayProviderSettingsFactory.BuildEntity(GatewayProviderSettingsDto dto)
at Merchello.Core.Persistence.Repositories.GatewayProviderRepository.d__5.MoveNext()
at System.Linq.Buffer1..ctor(IEnumerable1 source)
at System.Linq.Enumerable.ToArray[TSource](IEnumerable1 source) at Merchello.Core.Persistence.Repositories.MerchelloRepositoryBase1.GetAll(Guid[] keys)
at Merchello.Core.Services.GatewayProviderService.GetAllGatewayProviders()
at Merchello.Core.Gateways.GatewayProviderResolver.BuildActivatedGatewayProviderCache()
at Merchello.Core.CoreBootManager.InitializeGatewayResolver(IServiceContext serviceContext, CacheHelper cache)
at Merchello.Core.CoreBootManager.Initialize()
at Merchello.Web.WebBootManager.Initialize()
at Merchello.Core.MerchelloBootstrapper.Init(BootManagerBase bootManager)
at Merchello.Web.UmbracoApplicationEventHandler.ApplicationStarting(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext)
2018-12-19 18:43:26,965 [P11168/D2/T1] INFO Umbraco.Core.DatabaseContext - CanConnect = True`

Do you have any suggestions ?

Thank you

@YodasMyDad

This comment has been minimized.

Copy link
Contributor

YodasMyDad commented Jan 14, 2019

I don't I'm afraid. Do you have a machine key in the web.config?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment