Base solution for your next web application
Open Closed

Abp problem: item with the same key has already been added #2109


User avatar
0
mgx92 created

Good morning community, I have a big problem with abp.

I'm working on my boilerplate solution and want to test my changes... but now i get only this error:

Server Error in '/' Application.

An item with the same key has already been added.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.ArgumentException: An item with the same key has already been added.

Source Error:
Line 1:  @{
Line 2:      ViewBag.Title = L("Offer");
Line 3:  }
Line 4:

I changed nothing in the Localization xml files..

What did I do to fix this issue:

  • I rebuiled the solution
  • I checked all Localization xml files for correct syntax
  • I used the spanish one for every xml, because I never change the spanish one
  • I deleted all xml files
  • I clone the git repository again (and tried every point above with the new repository)
  • I used the local IIS and the IIS Express
  • Update abp to version 1.1.3 but the error won't be fixed..

Can someone help me?

PS: in the internet I read to load a new version of abp, but this is an company application and I can not use a new (clean) version - so I have to fix it :) PPS: my colleague doesn't have the problem - and I tried to use his xml files

Thanks, mxg92


2 Answer(s)
  • User Avatar
    0
    mgx92 created

    Fixed it! The problem was the database... :? :oops: The table abpLanguages has duplicate keys.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Thanks for sharing your solution :).