Key in Dictionary

Discussion in 'ASP .Net Datagrid Control' started by Ross Culver, May 7, 2007.

  1. Ross Culver

    Ross Culver Guest

    This error message "Item has already been added. Key in dictionary . . . "
    has become a major problem for me.

    I have a website whose main attractions (the money maker) are the two
    datagridviews used to return user requested information. The site is still
    in debug mode as we're in the final testing phase, so we're pounding the
    query and the grid to test it thoroughly.

    This site was built with VS 2K5, DotNet 2.0 on a Windows 2003 server and is
    AJAX enabled.

    This error is now popping up frequently and can only be corrected by
    removing the datakeyNames from the settings, saving and then re-inputting
    the keys. The Datamember is set to 'DefaultView'. I have no custom
    dictionaries and no code to manage these keys (neither to add nor to remove
    keys). Googling the error I found many folks suffering from the problem,
    but no one had even mentioned simply removing the keys.

    My site is 'DOWN' if I cannot get this problem resolved.

    What can I do to stop getting this error? Do I have to manage the keys?
    How?

    Thanks tremendously in advance.

    Ross
     
    Ross Culver, May 7, 2007
    #1
    1. Advertising

  2. Ross Culver

    Ross Culver Guest

    Could this possibly be a session issue? Are the key values dropped at the
    end of each session?

    Ross


    "Ross Culver" <> wrote in message
    news:...
    > This error message "Item has already been added. Key in dictionary . . .
    > " has become a major problem for me.
    >
    > I have a website whose main attractions (the money maker) are the two
    > datagridviews used to return user requested information. The site is
    > still in debug mode as we're in the final testing phase, so we're pounding
    > the query and the grid to test it thoroughly.
    >
    > This site was built with VS 2K5, DotNet 2.0 on a Windows 2003 server and
    > is AJAX enabled.
    >
    > This error is now popping up frequently and can only be corrected by
    > removing the datakeyNames from the settings, saving and then re-inputting
    > the keys. The Datamember is set to 'DefaultView'. I have no custom
    > dictionaries and no code to manage these keys (neither to add nor to
    > remove keys). Googling the error I found many folks suffering from the
    > problem, but no one had even mentioned simply removing the keys.
    >
    > My site is 'DOWN' if I cannot get this problem resolved.
    >
    > What can I do to stop getting this error? Do I have to manage the keys?
    > How?
    >
    > Thanks tremendously in advance.
    >
    > Ross
    >
     
    Ross Culver, May 7, 2007
    #2
    1. Advertising

  3. I'm not sure i understand your issue. Keys must be unique, the constraints
    are enforced. It seems obvious to me that you have a dupe in the process
    either with the submit or elsewhere. Are you saying that the data structure
    itself is corrupted?

    --
    Regards,
    Alvin Bruney
    ------------------------------------------------------
    Shameless author plug
    Excel Services for .NET is coming...
    OWC Black book on Amazon and
    www.lulu.com/owc
    Professional VSTO 2005 - Wrox/Wiley


    "Ross Culver" <> wrote in message
    news:%...
    > Could this possibly be a session issue? Are the key values dropped at the
    > end of each session?
    >
    > Ross
    >
    >
    > "Ross Culver" <> wrote in message
    > news:...
    >> This error message "Item has already been added. Key in dictionary . . .
    >> " has become a major problem for me.
    >>
    >> I have a website whose main attractions (the money maker) are the two
    >> datagridviews used to return user requested information. The site is
    >> still in debug mode as we're in the final testing phase, so we're
    >> pounding the query and the grid to test it thoroughly.
    >>
    >> This site was built with VS 2K5, DotNet 2.0 on a Windows 2003 server and
    >> is AJAX enabled.
    >>
    >> This error is now popping up frequently and can only be corrected by
    >> removing the datakeyNames from the settings, saving and then re-inputting
    >> the keys. The Datamember is set to 'DefaultView'. I have no custom
    >> dictionaries and no code to manage these keys (neither to add nor to
    >> remove keys). Googling the error I found many folks suffering from the
    >> problem, but no one had even mentioned simply removing the keys.
    >>
    >> My site is 'DOWN' if I cannot get this problem resolved.
    >>
    >> What can I do to stop getting this error? Do I have to manage the keys?
    >> How?
    >>
    >> Thanks tremendously in advance.
    >>
    >> Ross
    >>

    >
    >
     
    Alvin Bruney [MVP], May 8, 2007
    #3
  4.  
    Alvin Bruney [MVP], May 9, 2007
    #4
  5. Ross Culver

    Ross Culver Guest

     
    Ross Culver, May 9, 2007
    #5
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ilias Lazaridis
    Replies:
    6
    Views:
    446
    Ilias Lazaridis
    Feb 21, 2006
  2. james_027
    Replies:
    1
    Views:
    330
    Marc 'BlackJack' Rintsch
    Aug 22, 2007
  3. Navkirat Singh
    Replies:
    6
    Views:
    3,095
    Navkirat Singh
    Jul 29, 2010
  4. Chris Rebert
    Replies:
    0
    Views:
    531
    Chris Rebert
    Jul 29, 2010
  5. M P
    Replies:
    1
    Views:
    494
Loading...

Share This Page