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
|
|
|
|
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 |
|
|
|
|
Rank: Member
Joined: 11/5/2003(UTC) Posts: 1,786
|
|
|
|
|
Rank: Member
Joined: 4/8/2008(UTC) Posts: 21
|
Originally Posted by: "Corneliu I. Tusnea" 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.