New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the Community Exchange, where community members ask and answer questions about DNN. To get started, just start typing your question below and either select one of the suggested questions or ask a new question of your own.

DNN WebAPI (Services Framework), Getting periodic Server Error

Return to previous page

  • 7/6/2015
  • 2298 Views

Question:

Patrick Ryan 9 years ago

Hello all!

Environment:

DNN v7.3.4
.NET v4.0

Using AngularJS

This is a big tricky to explain, and I've attached a screenshot. I'm working on localhost and I have a module that loads data via $http get with AngularJS, calling DNN WebAPI. I'm using Services Framework. It's a server error so I don't think it has anything to do with a simple Angular $http get.

So let's say I have my module open on a page, and it's populated with data. I jump over to Visual Studio and make some changes to my code. I re-build in debug mode, and push the assembly to the bin folder. 

I then reload my page with the module on it.

I can't reproduce this every time, but every 10 times or so, I get the error that "An item with the same key has already been added." And it seems it has to do with viewstate and the authentication.

I'd like to track this down, but perhaps it's just a random thing when working in development and changing the code, certain things being cached, or perhaps I need to prevent caching at some level.

Thank you for any assistance or ideas you can provide!

DNN WebAPI (Services Framework), Getting periodic Server Error

Patrick Ryan
Patrick Ryan 9 years ago
Add an Answer

Answers

Sign In to Participate
Or register to become a member