Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Irving Caminero 1 post 71 karma points
    Dec 02, 2015 @ 05:18
    Irving Caminero
    0

    Umbraco 7 With Asp.Net MVC Random POST Request Error

    0 down vote favorite I'm facing a really weird error that we as a team have been trying to figure out for quite a time already.

    We had an Angular application sitting on a Asp.Net MVC project, the project was working perfectly this way as long as we recall. Because of business needs, we decided to integrate Umbraco to our solution, which resulted in us having a Umbraco/MVC 5/Angular project.

    Since we made this transition we've been having a pretty weird error occurring:

    -Some POST requests are causing an error to occur on the server side, we are using ELMAH and Glimpse so we actually are capturing the POSTED object, but no matter what we are not able to reproduce the error with the same object being posted twice.

    NOTE: Once this error occurs the site keeps working but all subsequent calls to the same method fail, I mean every other request no matter if it's the same or a different one fails. We are using azure websites, so in order to correct the error we have to restart the WebApp. Once we restart it, everything goes back to normal till the error occurs again.

    The Object we are posting is composed of:

    public List<int>
    public string 
    public int? 
    public int? 
    public AnObject 
    public Dictionary<int, int>
    

    NOTE: On the angular side the object being posted contains a set of integers where each one represents an ID, but once it's received on the server that list is NULL.

    Our guess is there is a problem between the Umbraco And Asp.Net JSON Deserializer(Maybe they step on each other feet) or Model Binder. Other thought is that there are Bots browsing the site and making those requests and for some reason they are causing the error. Pretty much we are looking at uncertainty right now so we would highly appreciate any help.

    Our Core Stack includes:

    Angular Js, Asp.Net MVC 5, Umbraco 7, all this hosted on azure cloud services.

    Thanks in advance, any help will be highly appreciated.

    Best Regards,

    Irving Caminero

Please Sign in or register to post replies

Write your reply to:

Draft