Copied to clipboard

Flag this post as spam?

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


  • Aaron Morf 15 posts 124 karma points
    Aug 10, 2016 @ 08:13
    Aaron Morf
    0

    Merchello.Web.Routing.ContentFinderProductBySlug

    Hi,

    Umbraco Version: 7.4.3 Merchello Version: 2.1.0

    I just uploaded all local files and getting now this error:

    [NullReferenceException: Object reference not set to an instance of an object.] Merchello.Web.Routing.ContentFinderProductBySlug..cctor() +35

    [TypeInitializationException: The type initializer for 'Merchello.Web.Routing.ContentFinderProductBySlug' threw an exception.] Merchello.Web.Routing.ContentFinderProductBySlug.TryFindContent(PublishedContentRequest contentRequest) +82 Umbraco.Web.Routing.PublishedContentRequestEngine.

    Localy is everything working... I also deleted the TEMP Folder an rebuilded the Merchello Indexes

    On a other site I get this error: Value cannot be null. Parameter name: merchelloContext

    I already checked this post but the only thing I found there is to add a MachineKey to the web.config. Because there are already some users I won't change this. https://our.umbraco.org/projects/collaboration/merchello/merchello/67963-error-merchellocontext-null

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Aug 10, 2016 @ 19:31
    Rusty Swayne
    0

    The MerchelloContext is a singleton that is created during application startup. Are you sure all of the Merchello dlls AND the App_Plugins/Merchello/config/Merchello.config have been deployed?

  • Aaron Morf 15 posts 124 karma points
    Aug 11, 2016 @ 08:05
    Aaron Morf
    1

    I checked if those files were uploaded and they were. But after I deleted everything on the server and re uploaded all files it seems to work now. thanks!

  • Aaron Morf 15 posts 124 karma points
    Aug 12, 2016 @ 07:06
    Aaron Morf
    0

    Now I have the same problem again.

    I checked if all files and binaries are uploaded and they are but it still fails at this point: https://github.com/Merchello/Merchello/blob/merchello-dev/src/Merchello.Web/UmbracoApplicationEventHandler.cs#L93

    2016-08-12 08:51:54,074 [P29028/D10/T217] INFO Merchello.Web.UmbracoApplicationEventHandler - Attempting to initialize Merchello 2016-08-12 08:51:54,090 [P29028/D10/T217] INFO Merchello.Web.WebBootManager - Verifying Merchello Database is present. 2016-08-12 08:51:54,293 [P29028/D10/T217] INFO Merchello.Core.CoreBootManager - Initializing Merchello GatewayResolver 2016-08-12 08:51:54,293 [P29028/D10/T217] INFO Umbraco.Core.PluginManager - Starting resolution types of Merchello.Core.Gateways.GatewayProviderBase 2016-08-12 08:51:54,293 [P29028/D10/T217] INFO Umbraco.Core.PluginManager - Completed resolution of types of Merchello.Core.Gateways.GatewayProviderBase, found 0 (took 1ms) 2016-08-12 08:51:54,340 [P29028/D10/T217] 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.Cryptography.HomogenizingCryptoServiceWrapper.Unprotect(Byte[] protectedData) 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.<PerformGetAll>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.Gateways.GatewayProviderResolver..ctor(IEnumerable1 values, IGatewayProviderService gatewayProviderService, IRuntimeCacheProvider runtimeCache) 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)

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Aug 12, 2016 @ 15:10
    Rusty Swayne
    0

    Hi Aaron,

    This looks like you've encrypted one or more of the Gateway provider settings on one web server and are trying to decrypt them on another. Go to the original and decrypt it.

    If your sharing the database, you could add a machine key to your web.configs

  • Aaron Morf 15 posts 124 karma points
    Aug 15, 2016 @ 05:55
    Aaron Morf
    0

    Hi Rusty,

    I am developing local but using the live database. Is there an other way to solve it without using a machine key because there are already some users which couldn't login anymore if I would add a machine key. Here is a post about it: https://our.umbraco.org/forum/developers/api-questions/55151-Adding-a-machine-key-to-Umbraco-site

Please Sign in or register to post replies

Write your reply to:

Draft