Base solution for your next web application
Open Closed

Odata API issue (500 exception) #3418


User avatar
0
antpstevens created

Hi support,

We are facing an issue with the Odata API. One of the Odata API is not working while specifying the column name. API return below error message (internally it throwing 500 exceptions).

URL eg: <a class="postlink" href="https://customerURL.net/odata/APIName">https://customerURL.net/odata/APIName</a>?<span style="color:#FF0000">$select=Name</span>

In controller there is no exception, it returns value. But after that application is crashing. We have implemented exception handling like below but this error is not logging. Global.asax:

Please advise how we can identify & resolve this issue.


3 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    If AspNet Zero is not logging error details to Logs.txt, then you can check window's event viewer. There might be some useful information about this error.

    Thanks.

  • User Avatar
    0
    antpstevens created

    I found this in /LogFiles/Application/:

    2017-05-31T22:27:39  PID[1192] Verbose     log4net:ERROR [RollingFileAppender] Unable to acquire lock on file D:\home\site\wwwroot\Logs\Logs.txt. The process cannot access the file 'D:\home\site\wwwroot\Logs\Logs.txt' because it is being used by another process.
    
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    This might be helpful. Is this problem repeatable or just happens sometimes ?

    If it is repeatable, please send your project to <a href="mailto:[email protected]">[email protected]</a> and we will try to find a solution for it.

    Thanks.