Developer forum

Forum » Dynamicweb 9.0 Upgrade issues » Upgrade to 9.5.6 fails with ArgumentNullException in Context.SetCurrency

Upgrade to 9.5.6 fails with ArgumentNullException in Context.SetCurrency

Espen Strømsnes
Espen Strømsnes
Reply

I have upgraded DW from 9.4.17 to 9.5.6 and now the front-end fails with the following message:

 

[ArgumentNullException: Value cannot be null.
Parameter name: value]
   Dynamicweb.Core.Ensure.That(Boolean condition, String message) +135
   Dynamicweb.Ecommerce.Common.Context.SetCurrency(Currency value) +47
   Dynamicweb.Ecommerce.Frontend.EcomPageLoadNotificationSubscriber.LoadedPage(PageView pageview) +418
   Dynamicweb.Extensibility.Notifications.NotificationManager.Notify(String notification, NotificationArgs eventArgs) +866
   Dynamicweb.Frontend.PageView.Load() +2734
   Dynamicweb.Frontend.DynamicwebHttpHandler.ProcessRequest(HttpContext context) +200
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +790
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +195
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +88

Why?

 

I have also tried to upgrade from 9.4.17 to 9.4.20 and this works just fine. 

 

Best regards

Espen

 

 

9.5.6.png

Replies

 
Nicolai Pedersen
Reply
This post has been marked as an answer

Can you check if you have a default currency and that a currency have been set on website properties?

Votes for this answer: 1
 
Espen Strømsnes
Espen Strømsnes
Reply

Of course Nicolai....

The website was missing the currency setting. The site works just fine now that I have changed the setting from None to an actual currency :-)

 

Thanks 

Espen

9.5.6_solution.png
 
Nicolai Pedersen
Reply

ok, great!

Still, it should not fail. Will look into that.

Thanks, Nicolai

 

You must be logged in to post in the forum