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.0Edit Module Definition - Supported Features loosing values after updateEdit Module Definition - Supported Features loosing values after update
Previous
 
Next
New Post
4/15/2007 10:33 PM
 

In the final testing of a custom module (in a source install recently upgraded to DNN 4.5.0) I edited its Module Definition and noticed that after clicking Update the previously checked ISearchable, IPortable, IUpgradable supported features lost their check marks and upon further checking noted that the module's action menu lost its Import and Export commands.

 

After finding similar behavior when clicking on Update for several core modules (XML, Survey, etc), I then found the following error logged in the EventViewer after each update of a Module Definition:

AssemblyVersion: 04.05.00
PortalID: 0
PortalName: Development
UserID: 1
UserName: host
ActiveTabID: 18
ActiveTabName: Module Definitions
RawURL: /DotNetNuke4/Host/Module Definitions/tabid/18/ctl/Edit/mid/322/desktopmoduleid/94/portalid/0/Default.aspx
AbsoluteURL: /DotNetNuke4/Default.aspx
AbsoluteURLReferrer:
UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 519be6d1-8292-48aa-a685-e6c2a50379f9
InnerException: Cannot insert the value NULL into column 'ExceptionMessage', table 'DNN4.dbo.dnn_EventQueue'; column does not allow nulls. INSERT fails. The statement has been terminated.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Data.SqlClient.SqlConnection.OnError
StackTrace:
Message: System.Data.SqlClient.SqlException: Cannot insert the value NULL into column 'ExceptionMessage', table 'DNN4.dbo.dnn_EventQueue'; column does not allow nulls. INSERT fails. The statement has been terminated.at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(SqlConnection connection, CommandType commandType, String commandText, SqlParameter[] commandParameters)at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters)at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, String spName, Object[] parameterValues)at DotNetNuke.Data.SqlDataProvider.AddEventMessage(String eventName, Int32 priority, String processorType, String processorCommand, String body, String sender, String subscriberId, String authorizedRoles, String exceptionMessage, DateTime sentDate, DateTime expirationDate, String attributes)at DotNetNuke.Services.EventQueue.EventQueueController.SendMessage(EventMessage message, String eventName)

 

I then tracked down the source of the error to the following line in the UpdateModuleInterfaces method of Website/ModuleDefinitions/EditModuleDefinition.ascx.vb:

oAppStartMessage.ExceptionMessage = Localization.GetString("UpdateInterfacesError", LocalResourceFile)

There is no resource of that name or for "UpdateInterfaces.ErrorMessage" (which would follow the pattern of other localization keys in the code) in the resource file EditModuleDefinition.ascx.vb.  The Localization.GetString function returns Nothing which causes the error when the StartMessage is written to the database. Since the event for the "UpdateSupportedFeatures" ProcessorCommand is never placed in the event que, the supported features are never updated and remain unchecked. I found this to be true in the install version of 4.5.0 as well as both source and install for 4.4.1.

I then added a resource for the "UpdateInterfacesError" to the resource file and found that the Supported features were now being properly discovered after clicking Update.


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
4/16/2007 11:03 AM
 

THis is a nice find, I noticed this on my sites a while back but never got a chance to look into it.


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
4/17/2007 9:49 AM
 

I've added this to Gemini.


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Edit Module Definition - Supported Features loosing values after updateEdit Module Definition - Supported Features loosing values after update


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