Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Help tracking this errorHelp tracking this error
Previous
 
Next
New Post
5/23/2009 3:44 AM
 

Anybody? Help?

 
New Post
5/23/2009 4:05 AM
 

 You need to track down where the error is occuring.

My method is to put debug statements at the entry and exit of my functions. I generally just print the function name, indented using _ (underscore) for each level of function it is going into.

From there, I catch any errors that happen, display them, (prevent DNN from handling it) and then look at my output and see what function was the last one that my debug went into.

It's a little trickier with it happening close to page load - but eliminate some pieces of code, try to get the error for a reasonable amount of time, if you get it, eliminate some more... if you don't (again, a lot of time may be required to be reasonably sure the error isn't coming) add back in some of the last code removed.

I normally remove large swatches of code, and then slowly add code back, same idea. Remove code, test, uncomment small chunks, test... repeat.

There isn't enough information to figure out the problem from what we have, for me anyway. You need to debug it and find the offending line(s) of code and continue from there.

 
New Post
5/23/2009 2:59 PM
 

The problem is that the error occurs from time to time on binding the DropDownList. And I cannot figure out why it is happening only occasionally and in what occasions...

Catalin

 
New Post
5/23/2009 4:50 PM
 

Use the OnBinding function, output the text/value of the items in the drop down list, the text/value of the item(s) being bound or selected. Basically, as much info as you can about the text/values being used in the dropdownlist and the data being bound - Then, catch any errors in the OnBind function (if that's where the error originates) and output "ERROR OCCURED" and you can check the data and see if something stands out.

if the items in the list change, you can look for a common element when the error occurs vs when it doesn't, ect

 
New Post
5/25/2009 3:21 AM
 

So, for a dropdownlist I should use OnDataBinding and OnDataBound? Because I could not find OnBinding and OnBind for the DropDownList

Thank you,
Catalin

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Help tracking this errorHelp tracking this error


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out