question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

EntityIndex - Operation is not valid due to current state of the object

See original GitHub issue

Hey guys! I’m getting an error like described above when trying to generate this:

[Meta]
public class UnlockedTrickComponent : IComponent {
        [PrimaryEntityIndex]
        public string trickId;
        [EntityIndex]
        public int trickHash;
}

But it generates fine when I remove one of the indexes. Am I not allowed to have multiple indexes on one component or did I miss something?

Thanks.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
sschmidcommented, Nov 8, 2017

Updated generator, multiple entity indices are now supported! 👍

0reactions
sschmidcommented, Nov 8, 2017

Reopen, needs some more adjustments…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Operation is not valid due to the current state of the object, ...
Issue happens because Microsoft Security Update MS11-100 limits number of keys in Forms collection during HTTP POST request. To alleviate this ...
Read more >
Operation is not valid due to the current state of the object.
Hi, Why i am getting this error: Operation is not valid due to the current state of the object. Here is my code:...
Read more >
Operation is not valid due to the current state of the object
http://stackoverflow.com/questions/8832470/operation-is-not-valid-due-to-the-current-state-of-the-object-error-during-pos[^]
Read more >
Error: Operation is not valid due to the current state of Object
Open Web.Config from Control Panel Website (located at: C:\Program Files\MachSol\MachPanel Control Server), and find <appSettings> key in it. · Write following ...
Read more >
Operation is not valid due to the current state of the object.
To solve this issue, set aspnet:MaxHttpCollectionKeys key value to 2000 in App settings in Web. config.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found