• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

mzirino
#1 Posted : Saturday, May 3, 2008 2:03:09 PM(UTC)
mzirino

Rank: Member

Joined: 4/8/2008(UTC)
Posts: 21

Hi I just moved a bvCommerce project to a new computer and when I run the site, I get this error:


Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Line 27:
Line 28: 'launch custom rules
Line 29: For Each rule As Utilities.UrlRewritingRule In Utilities.UrlRewritingRule.AvailableRules
Line 30: If rule.Execute(app, sourceUrl, parts) Then
Line 31: 'if the path was rewritten, then we are done


Source File: P:\Projects\Projects\optp\BVSoftware.Bvc5.Core\Utilities\UrlRewriter.vb Line: 29

As far as I can see URLRewritingRule.AvailableRules is never initialized and returns Nothing. Is this bug? Is the fix that the URLRewritingRule.AvailableRules collection should lazy instantiate the collection?

Marco
CorneliuTusnea
#2 Posted : Monday, May 5, 2008 12:25:46 AM(UTC)
CorneliuTusnea

Rank: Member

Joined: 8/17/2006(UTC)
Posts: 681

Marco,
That bug is a classic one. Your app can't talk to the DB.
Your user configured in the web.config is not able to talk to the BV database.
Fix that and this will go away :)
Regards,
Corneliu
http://www.bestgames.com.au
http://www.bestchess.com.au



BV Product Links, Details and Signatures: Improve your customer experience:

http://www.acorns.com.au/projects/bv/quicklink/

Marcus
#3 Posted : Monday, May 5, 2008 8:29:39 AM(UTC)
Marcus

Rank: Member

Joined: 11/5/2003(UTC)
Posts: 1,786

This knowledge base article should help: Why do I get an error when my store starts?
mzirino
#4 Posted : Tuesday, May 6, 2008 12:43:32 PM(UTC)
mzirino

Rank: Member

Joined: 4/8/2008(UTC)
Posts: 21

Originally Posted by: "Corneliu I. Tusnea" Go to Quoted Post
Marco,
That bug is a classic one. Your app can't talk to the DB.
Your user configured in the web.config is not able to talk to the BV database.
Fix that and this will go away :)
Regards,
Corneliu


You're right. Would be nice if it would display a message for that error.
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

©2024 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012