Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Web API Post returning error "Operation is not valid due to the current state of the object"

$
0
0

I have a .Net Core Web Site calling a ASP.Net web API to insert data and a document into an Oracle database. On clicking the submit button and invoking the post method, I get the error: Operation is not valid due to the current state of the object. Any idea what this is? I have found a couple of things, but no fix yet. The first thing I came across was adding a key to appsettings:

<appSettings>
      <add key="aspnet:MaxHttpCollectionKeys" value="2001" />
</appSettings>

But that had not effect.


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>