MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

Edit Ad element from campaign - v5.1.40.5107   (Mono Support )

Viewed 13159 time(s), 2 post(s) 3/30/2015 10:11:12 AMby akucharczyk
akucharczyk

akucharczyk

3/30/2015 10:11:12 AM
Hi!

We have a problem in Ads module (AdManager.aspx). When we want to edit Ad element from campaign we get error:
System.ArgumentException: An item with the same key has already been added. w System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) w MonoSoftware.MonoX.Admin.AdManager.#Wu(Guid entityId, CancelEventArgs e) w MonoSoftware.MonoX.GridViewEditBox.OnEdit(Guid entityId, CancelEventArgs e) w MonoSoftware.MonoX.GridViewEditBox.btnEdit_Click(Object sender, EventArgs e) null

Is it known issue?

Regards,
Adam
This content has not been rated yet. 
99 Reputation 10 Total posts
zhuber

zhuber

4/1/2015 9:35:13 AM
Hi Adam,

We have tried to reproduce this error and the only way we could get it is when we have inserted two same pages with same language inside same Ad. 

If you could please verify if you have two or more same pages attached to same Ad by running this query on MonoX database:

SELECT AdId, PageId, LanguageId FROM AdPage
GROUP BY AdId, PageId, LanguageId
HAVING COUNT(*) > 1

This query will return records that have AdId, PageId, LanguageId duplicates inside AdPage table. If this query returns anything, it means you have to delete one (or maybe even more) of those duplicates from AdPage table.

If query doesn't return anything then something else caused the problem.
Please let us know so we can continue investigating the problem.

Regards,
Ċ½eljko
This content has not been rated yet. 
145 Reputation 18 Total posts