EventQueue Error When Installing Modules
Issue
You get the following error when trying to install modules in your DotNetNuke website:
ExceptionSystem.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary. at System.ThrowHelper.ThrowKeyNotFoundException() at System.Collections.Generic.Dictionary`2.get_Item(TKey key) at DotNetNuke.Services.EventQueue.EventQueueController.GetSubscribers(String eventName) at DotNetNuke.Services.EventQueue.EventQueueController.SendMessage(EventMessage message, String eventName) at DotNetNuke.Services.Installer.Installers.ModuleInstaller.Commit() at DotNetNuke.Services.Installer.Installers.PackageInstaller.Commit() at DotNetNuke.Services.Installer.Installers.PackageInstaller.Install() at DotNetNuke.Services.Installer.Installer.InstallPackages() at DotNetNuke.Services.Installer.Installer.Install()
Cause
This is a known issue that can occur after upgrading a DotNetNuke website.
Resolution
- Open up the \Portals\_default\EventQueue\EventQueue.config file in file manager and copy out your SubscriberID and your Private Key.
- You will need to replace the content below with your SubscriberID and Private Key
- After you update the code below replace the contents of your EventQueue.config file with everything between the COPY HERE contents below.
- Save your new EventQueue.config file.
---------------------------COPY HERE-------------------------------------
<?
xml
version
=
"1.0"
encoding
=
"utf-16"
?>
<
EventQueueConfig
>
<
PublishedEvents
>
<
Event
>
<
EventName
>Application_Start</
EventName
>
<
Subscribers
>efbcd110-e941-410a-96f9-96c74b794ec9</
Subscribers
>
</
Event
>
<
Event
>
<
EventName
>Application_Start_FirstRequest</
EventName
>
<
Subscribers
>efbcd110-e941-410a-96f9-96c74b794ec9</
Subscribers
>
</
Event
>
</
PublishedEvents
>
<
EventQueueSubscribers
>
<
Subscriber
>
<
ID
>efbcd110-e941-410a-96f9-96c74b794ec9</
ID
>
<
Name
>DNN Core</
Name
>
<
Address
/>
<
Description
/>
<
PrivateKey
>D9E266EF75204BD7A867C6091FF7587D</
PrivateKey
>
</
Subscriber
>
</
EventQueueSubscribers
>
</
EventQueueConfig
>
----------------------------COPY END--------------------------------------
Article ID: 444, Created: April 9, 2012 at 3:42 PM, Modified: August 25, 2014 at 2:39 PM