Sign In  |  Register
 
 DotNetNuke Powered!
DotNetNuke Support Forums

EventViewer Errror I Can't Figure Out

Rate this topic:

Please Register to post a reply.
Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.

AuthorMessages
mikeh
Posts:25



05/21/2007 9:27 AM  

John, you might have some ideas on this as you had a fair amount to do with the Eventviewer at one point. Below is a copy and paste of my post on the DNN site.

About a month ago I found out that the DailyComic module i'd been updating since DNN 3 came out was throwing an error under DNN 4.5.1 so I quickly updated it. It installs with no errors and doesn't throw any errors in the actual use of the module but I received a couple of reports that it was throwing errors in the EventViewer. The first report I wrote off because the same person had a problem with the 4.5.1 upgrade but after I got the second one this morning I started investigating further (I checked my production site that the module is installed on and there are no errors there). When I fired up my testing install on my development system I saw that I was also getting the error on that install.

I spent some time this evening going through the code and fixed where I think the error was being caused (a problem with the BusinessController) but it's still throwing the error. The odd thing is that it's throwing the error on DesktopModuleIds that don't exist in the DesktopModules table and on the previous version of the module. Any help would be appreciated as I don't know where to go next with this.

EventQueue.ProcessMessage: Message Processing Failed
ProcessorType: DotNetNuke.Entities.Modules.EventMessageProcessor, DotNetNuke
Body:
Sender:
BusinessControllerClass: DailyComic.DailyComicController
DesktopModuleId: 89 <--- DailyComic DesktopModuleId is 90 and the next closest valid ID is 85. Errors go from DesktopModuleId 86 to 89
UpgradeVersionsList: 03.00.01 <---- Current version is 03.00.02
ExceptionMessage: Object reference not set to an instance of an object.
Server Name: T501E-02A

John Mitchell
Posts:3084



05/21/2007 10:12 AM  
Hi Mike,
When a module is installed it drops an event message in the message queue to run the IUpgradeable interface if you have it implemented.

Look in your upgrade code to determine why you are getting the object reference not set to an instance of an object error.
I can't think of a reason for the wrong desktop id's. Maybe the module been removed several times?

I also know that they had an error in the EvenMessageProcessor for 4.5.1 because it was switched to use the Database for storing the messages and there was a field that did not allow nulls, but I don't think that is it because the Upgrade should not run in that case.

If you can debug, set a breakpoint in the PADnnInstallerBase.vb file at line 437 where it calls upgradeModule and you may be able to find the answer there.

mikeh
Posts:25



05/21/2007 10:57 AM  
Thanks John. I checked my production site where the 03.00.01 is running and Upgradeable isn't checked. I'll try installing it in the source version I use for AD fixes and putting a break point where you suggest. AFAIK I don't have any upgrade logic in place for either DNN4 version 03.00.01 or 03.00.02 though it's possible there might be something in the .01 version as I used the Compiled Module template.

I don't remember installing it multiple times and the two users that have reported problems to me didn't give me any indications that they had either but that doesn't mean they didn't give it a shot.

I guess I'm more confused as to why it's still throwing an error when the latest version is 03.00.02 or why it would still throw an error even after the module had been removed.
John Mitchell
Posts:3084



05/21/2007 11:05 AM  
OK, also keep in mind that the UprgradeVersionsList will only have the previous version(s) that you are upgrading from, not what you are currently upgrading to.
mikeh
Posts:25



05/21/2007 12:19 PM  
That makes sense but this same error for the same version number started showing up with the 03.00.01 fresh install. I just checked the source code on both versions (.01 and .02) and IUpgradeable isn't used anywhere in the code. I'm about to attempt stepping through the DNN source.
mikeh
Posts:25



05/21/2007 1:10 PM  
Stepping through the code it looks like it's attempting to run the IUpgradeable interface whether it's used or not. I tried stepping through the Application Restart code to find where it's throwing the error but didn't find anything. :(
John Mitchell
Posts:3084



05/21/2007 1:22 PM  
Yes, the UpgradeModule method will send a message to the EventQueue as long as there is a BusinessControllerClass.
It is checked to see if IUpgradeable has been implemented when the message is processed in the Components/Module/EventMessageProcessor.vb file.

The UpgradeModule method in that class is most likely where your error is happening, probably because it can not create an instance of your BusinessControllerClass.
mikeh
Posts:25



05/21/2007 3:50 PM  
Thanks for your help John. I eventually figured out to look in the EventQueue table and I blew away the records that were calling the problem. I was then able to successfully test the 03.00.02 version and haven't gotten any event errors so far.
John Mitchell
Posts:3084



05/21/2007 3:55 PM  
Ahh, very interesting. That is a new problem since they started putting the event queue messages in the DB. The error must not be allowing them to get the flag set indicating they have already been processed so it tries to reprocess old messages again each time the app restarts.

When I had originally coded the EventQueue I had it deleting the message from the queue as soon as it was read.
Please Register to post a reply.
Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.

Forums >DotNetNuke Support >General-DNN-Help > EventViewer Errror I Can't Figure Out



ActiveForums 3.7
Visit our Store for great DotNetNuke Modules and Skins
DNNMasters Sitemap/Google Sitemap 3.0

Item codeSM3-01
Price$29.00
Product Information 
DotNetNuke CSS NavMenu 3.3 (Developers)

Item codeCSSNM33DEV
Base Price$149.00
Product Information 
Snapsis PageBlaster 3.3.2 for DotNetNuke - Professional Edition

AuthorJohn Mitchell
Base Price$79.00
Product Information