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

Notification

Icon
Error

smartdom
#1 Posted : Wednesday, April 25, 2007 10:47:25 AM(UTC)
smartdom

Rank: Member

Joined: 11/15/2006(UTC)
Posts: 52

Have a VS solution with the new core and a patched website. When running the site in VS, I get an object reference error on this code in urlrewriter.vb.

'launch custom rules
For Each rule As Utilities.UrlRewritingRule In Utilities.UrlRewritingRule.AvailableRules
If rule.Execute(app, sourceUrl, parts) Then
'if the path was rewritten, then we are done
Return
End If
Next

The error is on the AvailableRules property. In the code file for this, the property is set to nothing, probably a cause for the exception. Can someone explain this?
Andy Miller
#2 Posted : Wednesday, April 25, 2007 12:13:58 PM(UTC)
Andy Miller

Rank: Member

Joined: 11/5/2003(UTC)
Posts: 2,136

Was thanked: 1 time(s) in 1 post(s)
AvailableRules is created by App_Code\TaskLoader.vb

Make sure you have an up-to-date version of TaskLoader.vb
Andy Miller
Structured Solutions

Shipper 3 - High Velocity Shipment Processing
abs
#3 Posted : Sunday, April 29, 2007 6:15:02 PM(UTC)
abs

Rank: Member

Joined: 7/28/2006(UTC)
Posts: 79

I've got the correct version of taskloader.vb but I'm also getting this?

Dom, did you solve this?
abs
#4 Posted : Monday, April 30, 2007 8:16:11 AM(UTC)
abs

Rank: Member

Joined: 7/28/2006(UTC)
Posts: 79

I solved it by ensuring that the database connection is valid and working. I think some intialisation is swallowing a db connection exception and further code runs without objects being initialised with data from the db.

To recreate this, I think all you have to do in your current working visual studio setup is to invalidate your db connection and hit the debugger step into button (F11).
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.

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