Forums

Registration

Click here to register. Registration is required if you want to post to the forums.

If you register, we can also contact you with news on new module versions, and upgrades to new modules as we make them available. 

Use of your registration information is subject to our privacy policy.

Inventua Forums

Subject: Shadow module and MLAdvAnnouncement
Prev Next
You are not authorized to post a reply.

Author Messages
Yann Le Heritte
Posts:6

16 Sep 2009 11:21 AM  

Hello,

I tried the Shadow module, but there is an error when trying to shadow an MLAdvAnnouncement module (from Apollo). When the module title is not localized, it displays fine, but as soon as I localize the title in the source module, here is what I have in the shadow module page:

Error: Announcements is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: The INSERT statement conflicted with the FOREIGN KEY constraint "FK_TabModuleSettings_TabModules". The conflict occurred in database "oxygene", table "dbo.TabModules", column 'TabModuleID'. The statement has been terminated. ---> System.Data.SqlClient.SqlException: The INSERT statement conflicted with the FOREIGN KEY constraint "FK_TabModuleSettings_TabModules". The conflict occurred in database "oxygene", table "dbo.TabModules", column 'TabModuleID'. 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.AddTabModuleSetting(Int32 TabModuleId, String SettingName, String SettingValue) at DotNetNuke.Entities.Modules.ModuleController.UpdateTabModuleSetting(Int32 TabModuleId, String SettingName, String SettingValue) at Apollo.DNN.Modules.MLAdvAnnouncements.MLAdvAnnouncements.updateSetting(String settingName, String value) at Apollo.DNN.Modules.MLAdvAnnouncements.MLAdvAnnouncements.cloneAllSettings(String settingName, String defaultValue) at Apollo.DNN.Modules.MLAdvAnnouncements.MLAdvAnnouncements.loadSetting(String settingName, String defaultValue) at Apollo.DNN.Modules.MLAdvAnnouncements.MLAdvAnnouncements.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace -

==============================

Shadow version 04.00.08

DNN version 04.08.02

MLAdvAnnouncements version 01.00.03

What can I do about that, and which one is the problem ?

Thanks,

Yann

Anthony Glenwright
Posts:11519

16 Sep 2009 6:45 PM  
I *think* that whay is happening is thay the MLAdvAnnouncements module is updating it's own settings on view, as the error mentions a function called "UpdateTabModuleSetting". In order to do this succesfully, it needs to get it's own tabid. The shadow module sets the module's tabid property to the "current" page, rather than the "source" page, which is where it's settings would be stored.

I had a similar issue with another module, and changed the code to set the module's tabid to the "source" page instead of the current page - but in that case the change didn't work (didn't do anything bad, it just didn't fix the problem!), so I never released an update. If you would like to test this for me with MSAdvAnnouncements, send me an email to support@inventua.com and I'll send you a test version of the shadow module and see if the code change fixes this problem.
You are not authorized to post a reply.
Forums > Inventua Forums > DotNetNuke Modules/Components Support > Shadow module and MLAdvAnnouncement



ActiveForums 3.7