I have a situation where I'm using an ajax request to return some html from an mvc app. The controller checks to see if the user is logged in (something it does in most of our controller methods), generates the model, and then returns the view. This code
works just fine on my local machine, but when moved up to the azure server something is amiss. No error message is being sent back to the client that I can see, but something is obviously wrong. It could be the client side or server side code - for some
reason, though, I'm suspecting the server side.
I found a log file on the server called eventlog.log, but that didn't containing anything that pointed me to my problem. 996 of the error messages said the same thing, and 4 were different. I have those copied below:
EventData
Data
Application 'MACHINE/WEBROOT/APPHOST/USMC-EMSS-APP' with physical root 'D:\home\site\wwwroot\' failed to start process with commandline '%LAUNCHER_PATH% %LAUNCHER_ARGS%', ErrorCode
= '0x80070002 : 0.
Warning: Could not create stdoutLogFile \\?\D:\home\site\wwwroot\logs\stdout_3064_201781142459.log, ErrorCode = -2147024893.
Application 'MACHINE/WEBROOT/APPHOST/USMC-EMSS-APP' started process '10868' successfully and is listening on port '24324'.
Warning: Could not create stdoutLogFile \\?\D:\home\site\wwwroot\logs\stdout_3064_2017864149.log, ErrorCode = -2147024893.
Application 'MACHINE/WEBROOT/APPHOST/USMC-EMSS-APP' started process '6996' successfully and is listening on port '20442'.
Does anybody have any idea how I can figure out what's wrong with my app?
Thanks!
I always add to the reputation of those whose answers are helpful - and even occasionally to those whose answers aren't helpful but who obviously put forth a valiant effort.
Yes, I have code in place to display the error message if it returns. I'm wondering, though, if for some reason Asp.net is not returning the error message. I've seen this in other places in our code, where an error occurs server side but it isn't sent
to the client.
I always add to the reputation of those whose answers are helpful - and even occasionally to those whose answers aren't helpful but who obviously put forth a valiant effort.
Are you logging every exception, your application throws. There may be chances you have missed to log on some places inside cache. So it will not throw or not even log the exceptions.
Member
31 Points
192 Posts
How to trace an error that only occurs on Azure server
Aug 17, 2017 11:51 PM|dolot|LINK
I have a situation where I'm using an ajax request to return some html from an mvc app. The controller checks to see if the user is logged in (something it does in most of our controller methods), generates the model, and then returns the view. This code works just fine on my local machine, but when moved up to the azure server something is amiss. No error message is being sent back to the client that I can see, but something is obviously wrong. It could be the client side or server side code - for some reason, though, I'm suspecting the server side.
I found a log file on the server called eventlog.log, but that didn't containing anything that pointed me to my problem. 996 of the error messages said the same thing, and 4 were different. I have those copied below:
Does anybody have any idea how I can figure out what's wrong with my app?
Thanks!
Member
263 Points
236 Posts
Re: How to trace an error that only occurs on Azure server
Aug 18, 2017 07:00 AM|Kelmen|LINK
have u enable display ajax error message at client site?
have a look http://blog.jeromeparadis.com/2007/03/01/1501/
Member
31 Points
192 Posts
Re: How to trace an error that only occurs on Azure server
Aug 18, 2017 10:58 AM|dolot|LINK
Yes, I have code in place to display the error message if it returns. I'm wondering, though, if for some reason Asp.net is not returning the error message. I've seen this in other places in our code, where an error occurs server side but it isn't sent to the client.
All-Star
48510 Points
18071 Posts
Re: How to trace an error that only occurs on Azure server
Aug 18, 2017 11:27 AM|PatriceSc|LINK
Hi,
This is a VM or a web app? Try https://docs.microsoft.com/en-us/azure/app-service-web/web-sites-enable-diagnostic-log
What is the wrong behavior you are seeing for now? To start with the Ajax request fails with some http status?
Member
633 Points
328 Posts
Re: How to trace an error that only occurs on Azure server
Oct 26, 2017 06:59 AM|komaldparekh|LINK
Are you logging every exception, your application throws. There may be chances you have missed to log on some places inside cache. So it will not throw or not even log the exceptions.