Artem2015-03-01 19:05:41
Artem, 2015-03-01 19:05:41

After publishing an asp.net mvc application on Azure, one of the methods is no longer available?

There is an ASP.NET MVC application after deployment, one of the methods that was called by javascript is no longer available.

 public ActionResult Tiket(int seanceId, IEnumerable<long> ids)

request script
var request = new XMLHttpRequest();
        request.open('POST', '@Url.Action("Tiket")', true);
        request.setRequestHeader('Content-Type', 'application/json; charset=UTF-8');
        request.onreadystatechange = callback;
        request.send(JSON.stringify({ seanceId: '192', ids: array }));

data goes to the server like this
  ids: ['747', '757', '767']

here is the description of the exception: 502 - Web server received an invalid response while acting as a gateway or proxy server
Forgot to add that locally all this code works without problems

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Alexander Belotserkovsky, 2015-03-03

Where after deployment?
Have you looked at fiddler to see what's going on?
ARR are you using?
If the website, is it in Free mode?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question