AccessViolationException asp net web api



  • There's warehouses on the website, cash, traffic. This is all going to be great. But there are orders. I looked at the brakepoin, the data from the bd are coming up and after I'm in the excheon returning the result. return Content(HttpStatusCode.OK, result); There's an exception in the middle of half a mile. Исключение

    I don't know.



  • If you have a similar script, that's when you take the data from the base and return safely and you've got an exception in a while, check the problem spot (in my case, with orders) for possession. self referencing loop♪ You should use auxiliary models (ApiModels) in a business logic instead of models (Models) that you use to store in the database.

    It's like in MVC the separation of models on ViewModels and Models. I have a web-based api, so I called them ApiModels. If your bud models have links to other models, don't use these models to be released in counter-ellers. Don't ever use it.




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2