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 )

14656 put(a) pogledan, 2 odgovor(a) 30.3.2015. 10:11:12Kreirao(la) akucharczyk
akucharczyk

akucharczyk

30.3.2015. 10:11:12
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
Ovaj sadržaj još nije ocijenjen. 
99 Reputacija 10 Ukupno objava
zhuber

zhuber

1.4.2015. 9:35:13
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
Ovaj sadržaj još nije ocijenjen. 
145 Reputacija 18 Ukupno objava