I am using ASP.Net 4.0 w/ a C# Web service. This also utilizes a C# library, which is working fine in development and with other applications (Skype bot and Windows form)
I am using JQuery to communicate via JSON to the web service. In development, this is working fine. In production, it is partly working. I can use some commands, but other commands simply throw this error:
Error: The given key was not present in the dictionary.
I am not certain where to begin with this. I can’t step through code because it only happens in prod. I checked the IIS logs, and every request is getting a 200 status, so it appears it is something inside of the app itself. Any ideas where to start with this?
The issue was that I was using WebClient to call a URL that required a Login. I setup my app pool w/ my domain creds and then I was able to call the page w/o being prompted for a login.
Once calling the page, I was able to populate a list and loop through it. The error above was thrown because I was looping through an empty list.