Object Reference not set to an instance in Commerce Builder

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
vkoppaka
Ensign (ENS)
Ensign (ENS)
Posts: 2
Joined: Wed Nov 03, 2010 10:01 am

Object Reference not set to an instance in Commerce Builder

Post by vkoppaka » Wed Nov 03, 2010 10:06 am

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

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

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

Post by mazhar » Thu Nov 04, 2010 5:28 am

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.

Post Reply