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?
|
|
|
|
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 |
|
|
|
|
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?
|
|
|
|
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.