views:

232

answers:

2

I have a legacy DNN site, and an error shows up at the top of the page telling me that one of the modules failed to load. That's wonderful, but that doesn't tell me a damned thing about why the module didn't load. Does anyone unfortunate enough to work with DotNetNuke know how to view a stack trace when a module explodes? I keep looking for a "No, seriously..." button, and I haven't found one yet.

Cheers,

-Charles

A: 

There is an event viewer in the admin or host menu.

Frank Schwieterman
Unfortunately I can't login - I get a NullReferenceException. Sounds like a catch-22 problem...I appreciate the answer though - thanks. Hopefully I will find a way to login and see the event viewer.
Charles
I would guess that NullReferenceException is in your system event log. You can always look in the DNN database and find the event table and read DNN events directly... but I recommend fixing the logging-in-not-working problem first.
Frank Schwieterman
+3  A: 

When you aren't logged in, that's the only message you're going to see. I think you need to be a host user to see the error message in-line, in place of the module, but as an admin user you can go to the Event Viewer (or Log Viewer, depending on your version of DNN) page in the Admin menu.

However, since you can't login, you'll need to look at that table in the database, since you can't access the page. That table is called EventLog (there will be a prefix to that name if your site uses an object qualifier).

To start with, try a query like this:

SELECT * FROM EventLog ORDER BY LogCreateDate DESC

You're going to want to look mostly at the LogProperties column, which has XML about the event. One of the nodes will be a stack trace.

Hope that helps.

bdukes
Cool - I'll check this out shortly - thanks!
Charles