Page 1 of 1

Object Reference not set to an instance in Commerce Builder

Posted: Wed Nov 03, 2010 10:06 am
by vkoppaka
I am trying to integrate Sitefinity 3.7 with Able Commerce 7 .

However I am getting a Object Reference not set to an instance of an object exception. Here is the stack trace -

Code: Select all

[NullReferenceException: Object reference not set to an instance of an object.]
   CommerceBuilder.Users.UserDataSource.LoadForUserName(String userName, Boolean createMissing) +95
   CommerceBuilder.Common.Token.InitUserContext(HttpContext context) +322
   CommerceBuilder.Services.c.b(Object A_0, EventArgs A_1) +74
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +68
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
If I comment

Code: Select all

<add name="AbleCommerceHttpModule" type="CommerceBuilder.Services.AbleCommerceHttpModule, CommerceBuilder.Services" />
this line in web.config and log in to Sitefinity then the exception goes away. If i logout of sitefinity and uncomment the above line the exception comes back.

Is there some additional setup that I need to do to use commercebuilder from a third party application like Sitefinity?

Thanks

Re: Object Reference not set to an instance in Commerce Builder

Posted: Thu Nov 04, 2010 5:28 am
by mazhar
Sitefinity is successfully integrated into AbleCommerce by one of our partners http://www.jmawebtechnologies.com/Home.aspx, have a look at this blog post here http://blog.ablecommerce.com/new-partne ... e-together

One thing instead of running AbleCommerce in sitefinity as child application run sitefinity inside AbleCommerce so that AbleCommerce should be the main application and sitefinity should not override things for AbleCommerce. I think this might be the reason for problems in your case.