Text Adjustment: 

Background Styles: 

Sunday, February 05, 2012
DNN Support
Minimize
Upgrading the Events Module causes it to report "Argument 'Length' must be greater or equal to zero."
Last Post 10 Apr 2010 02:43 PM by Mark Buelsing. 0 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
AuthorMessagesInformative
Mark BuelsingUser is Offline
New Member
New Member
Posts:14

--
10 Apr 2010 02:43 PM QuoteReply  
If you have upgraded the Events module and then when viewing the module’s page you are presented with the error: "Argument 'Length' must be greater or equal to zero.", there was a problem with one of the upgrade processes. You can read about it here.

http://www.dotnetnuke.com/Community...fault.aspx

But essentially, to fix it, you paste this code into the host, SQL window and run it as a script. It sets the module up to restart the upgrade process. After you run the script, go to the Host Settings and restart the application. Hopefully that will take care of it.

UPDATE {databaseOwner}{objectQualifier}EventQueue
SET IsComplete = 0,
Attributes = '<Attributes><Attribute><Name>BusinessControllerClass</Name><Value>DotNetNuke.Modules.Events.EventController, DotNetNuke.Modules.Events</Value></Attribute><Attribute><Name>DesktopModuleId</Name><Value>'
+ CONVERT(varchar, DesktopModuleID)
+ '</Value></Attribute><Attribute><Name>UpgradeVersionsList</Name><Value>04.01.00</Value></Attribute></Attributes>'
FROM {databaseOwner}{objectQualifier}EventQueue CROSS JOIN
{databaseOwner}{objectQualifier}DesktopModules
WHERE (EventQueue.EventMessageID IN
(SELECT MAX(EventMessageID) AS Expr1
FROM {databaseOwner}{objectQualifier}EventQueue AS EventQueue_1
WHERE (Attributes LIKE '%DotNetNuke.Modules.Events.EventController, DotNetNuke.Modules.Events%') AND
(ProcessorCommand = N'upgrademodule'))) AND (ModuleName = N'DNN_Events')
GO





Quick Reply
toggle
 Username:
Subject:
Body:
Security Code:
Enter the code shown above in the box below

Submit

Powered by Active Forums
  
Website Services  |  About  |  Contact Us  |  Pricing  |  Styles Gallery  |  Sign Up
Copyright 2005-2008 LetItShine.Biz