This is driving me crazy. It's working when I run it in Visual Studio, but not when I deploy to Azure.
I'm getting the following error in the tracelog:
2015-06-02 12:53:29,660 [21] 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(Func`2 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) in c:\Working Repositories\GitHub\Merchello\src\Merchello.Core\Persistence\Factories\GatewayProviderSettingsFactory.cs:line 26
at Merchello.Core.Persistence.Repositories.GatewayProviderRepository.<PerformGetAll>d__0.MoveNext() in c:\Working Repositories\GitHub\Merchello\src\Merchello.Core\Persistence\Repositories\GatewayProviderRepository.cs:line 56
at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
at Merchello.Core.Persistence.Repositories.MerchelloRepositoryBase`1.GetAll(Guid[] keys) in c:\Working Repositories\GitHub\Merchello\src\Merchello.Core\Persistence\Repositories\MerchelloRepositoryBase.cs:line 233
at Merchello.Core.Services.GatewayProviderService.GetAllGatewayProviders() in c:\Working Repositories\GitHub\Merchello\src\Merchello.Core\Services\GatewayProviderService.cs:line 288
at Merchello.Core.Gateways.GatewayProviderResolver.BuildActivatedGatewayProviderCache() in c:\Working Repositories\GitHub\Merchello\src\Merchello.Core\Gateways\GatewayProviderResolver.cs:line 218
at Merchello.Core.Gateways.GatewayProviderResolver..ctor(IEnumerable`1 values, IGatewayProviderService gatewayProviderService, IRuntimeCacheProvider runtimeCache) in c:\Working Repositories\GitHub\Merchello\src\Merchello.Core\Gateways\GatewayProviderResolver.cs:line 67
at Merchello.Core.CoreBootManager.InitializeGatewayResolver(IServiceContext serviceContext, CacheHelper cache) in c:\Working Repositories\GitHub\Merchello\src\Merchello.Core\CoreBootManager.cs:line 226
at Merchello.Core.CoreBootManager.Initialize() in c:\Working Repositories\GitHub\Merchello\src\Merchello.Core\CoreBootManager.cs:line 105
at Merchello.Web.WebBootManager.Initialize() in c:\Working Repositories\GitHub\Merchello\src\Merchello.Web\WebBootManager.cs:line 49
at Merchello.Core.MerchelloBootstrapper.Init(BootManagerBase bootManager) in c:\Working Repositories\GitHub\Merchello\src\Merchello.Core\MerchelloBootstrapper.cs:line 18
at Merchello.Web.UmbracoApplicationEventHandler.ApplicationStarting(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext) in c:\Working Repositories\GitHub\Merchello\src\Merchello.Web\UmbracoApplicationEventHandler.cs:line 59
Deploying a Merchello site from Visual Studio
I'm trying to deploy a site with Merchello from a Visual Studio solution to Microsoft Azure.
I'm getting object null references from my Razor pages when trying to get Merchello products.
In the backend, clicking on the Merchello node also gives some errors:
I've published all the files in the Visual Studio solution and restarted the Azure service, but it's still not working. What could be the problem?
This is driving me crazy. It's working when I run it in Visual Studio, but not when I deploy to Azure.
I'm getting the following error in the tracelog:
It seems to be related to the gateways. I disabled all the gateways in Merchello and republished, and I'm not getting those errors.
I haven't been able to re-enable them again though.
Is there any guidance or best practice related to deploying from VS to Azure?
I deploy to Azure from VS without problem.
Make sure your App_Data / App_Plugins folders are included in your solution otherwise they won't get deployed.
Milton,
What type of Azure service are you deploying to? Websites, VM, etc?
Are the Examine Indexes correctly filled?
It appears that its an issue with encryption, but I'm not sure what that would be. Might have to ping Rusty on that.
Thanks,
Jason
is working on a reply...