Episerver Commerce 10.0.1.0: "Object reference not set to an instance of an object" on startup

I followed the tutorial to create an Episerver Commerce web site:

http://world.episerver.com/documentation/getting-started/commerce/2--creating-your-project/

But an "Object reference not set to an instance of an object" exception occurs when I run the app and go to the admin page:

http://localhost:60244/EPiServer

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]
   EPiServer.Commerce.Marketing.PromotionTypeHandler.SetPromotionsAvailability(IEnumerable`1 promotionTypes, Boolean available) +190
   EPiServer.Commerce.Initialization.InitializationModule.EnableAllPromotions(InitializationEngine context) +60
   EPiServer.Commerce.Initialization.InitializationModule.Initialize(InitializationEngine context) +173
   EPiServer.Framework.Initialization.Internal.<>c__DisplayClass3_0.
#171697
Nov 15, 2016 13:03

I've replicated this issue on another development server. It would be great to solve this issue soon. 

#171815
Nov 18, 2016 0:48
Vote:

Try starting the front end site and login to run the migration steps to upgrade the commerce db.

#171866
Nov 19, 2016 19:26

Awesome!! Thanks Tomas. That worked.

#171869
Nov 19, 2016 22:18
<p>Hi,&nbsp;</p> <p>Is this the only solution to this problem? We have a couple of developers working on the same solution with Commerce 9.22 and intermittently we're all getting this error.&nbsp;</p> <p>We're working on a shared database but nobody has updated their version of commerce to 10.</p> <p></p> <p>/Mark</p>
#174758
Feb 03, 2017 11:24
error This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.