Quick Nav:  Online Store   |   Login | Register

Violation of UNIQUE KEY constraint 'IX_ModuleDefinitions'

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
Richard Hutchinson
<20 Posts
Posts:6


04/30/2008 5:06 AM  

Hi,

I installed the module and had some problems with the Open Document Library module which uses Ajax so I uninstalled the Page Blaster module and removed the reference to Page blaster module in the web.config file. I then updated a few settings on the Open Document Library module then tried to reinstall the Page Blaster module however with the following error occurred.

Richard 

ExceptionSystem.Data.SqlClient.SqlException: Violation of UNIQUE KEY constraint 'IX_ModuleDefinitions'. Cannot insert duplicate key in object 'dbo.ModuleDefinitions'. 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.SqlDataReader.ConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() 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.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteScalar() at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteScalar(SqlConnection connection, CommandType commandType, String commandText, SqlParameter[] commandParameters) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteScalar(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteScalar(String connectionString, String spName, Object[] parameterValues) at DotNetNuke.Data.SqlDataProvider.AddModuleDefinition(Int32 DesktopModuleId, String FriendlyName, Int32 DefaultCacheTime) at DotNetNuke.Modules.Admin.ResourceInstaller.PaDnnInstallerBase.RegisterModules(PaFolder Folder, ArrayList Modules, ArrayList Controls) at DotNetNuke.Modules.Admin.ResourceInstaller.PaDnnInstallerBase.Install(PaFolderCollection folders) at DotNetNuke.Modules.Admin.ResourceInstaller.PaInstaller.Install()

John Mitchell
Posts:2779


04/30/2008 8:08 AM  
Hi Richard,
It looks like maybe the uninstall script did not execute correctly. The module may still work since that record was already there.

You can also try uninstalling again, then running the Uninstall script directly in the Host > SQL window. You can find the script in the DesktopModule/Snapsis/PageBlaster folder.
Richard Hutchinson
<20 Posts
Posts:6


04/30/2008 9:36 AM  

Hi John,

PageBlaster is no longer available in the admin menu. I am new to DNN so I am not sure how you go about running a DNN script form the SQL command line.

Richard

 

 

 

John Mitchell
Posts:2779


04/30/2008 9:56 AM  

I have attached the uninstall script to this post.

All you need to do is copy the text, then go to your Host > SQL page and paste it into the window and click on execute it will remove the records that are causing a conflict.

Then you can re-install it.


Attachment: 1430561925871.txt

Richard Hutchinson
<20 Posts
Posts:6


04/30/2008 10:30 AM  
I have run the script and tried to reinstall the module but with no joy the same error message is displayed.
John Mitchell
Posts:2779


04/30/2008 10:45 AM  
If you can give me Host Access by using the Private Message feature here in the forum then I'll go in and figure out what is wrong.

John Mitchell
Posts:2779


04/30/2008 11:22 AM  
Ok, Thanks for letting me have access, it made it easier to find the problem and correct.

I corrected the problem and re-installed the module. You'll need to go to the Admin > PageBlaster screen and enter your license key.

Let me know if you have any other problems.
John Mitchell
Posts:2779


04/30/2008 11:26 AM  
By the way, it looks like your application is restarting every couple of minutes, which may have been the reason that the uninstall didn't complete.
You should probably check with your host to find out why your website keeps restarting (they may have a limit on your memory that you are exceeding).
Richard Hutchinson
<20 Posts
Posts:6


05/01/2008 4:38 AM  

Hi John,

Thank you for the time you have spent trying to resolve this issue. All appears to be working however when I entered the license key and then went to save the following error appeared in the dialogue box of the module 'Object reference not set to an instance of an object'

Thanks for letting me know about the website restarting I will try to resovle this issue

Thanks again for your time

 

 

John Mitchell
Posts:2779


05/01/2008 7:55 AM  

No problem.

I have attached a debug version to this post. If you can put the attached files into your /bin file (overwritting the dll that is already there and adding the .pdb), then try saving the config.  The Log Viewer should have more information for us to figure out why it is not saving properly.

 


Attachment: 151555687571.zip

Richard Hutchinson
<20 Posts
Posts:6


05/01/2008 2:42 PM  

After adding the new files to the BIN directory, the following happens the module fails to work, all of the menu items disappear and the module does not show any text  there is also a message stating error on web page on the bottom right hand corner of internet explorer. I have removed the reference to page blaster from the web.config in order to disable the module.

John Mitchell
Posts:2779


05/01/2008 3:27 PM  
Could you attach the httpModules section of your web.config? There must be a conflict with some other module.

If you want to give me FTP access to your server account I can troubleshoot it.
Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
Forums >Snapsis Product Support >PageBlaster > Violation of UNIQUE KEY constraint 'IX_ModuleDefinitions'



ActiveForums 3.7
Powered by: Snapsis Software