Hi All,
I need some help as i am stuck in a weird problem.
I have a WebApi 2.0 that's exposes methods which fetch the data from SQL server using Entity framework via Unity Controller. The Database layer is part of an application that populates the data to the SQL server database. Hence i am only performing get operations through the WebAPi.
I am getting a "object reference..." exceptions in few of my WebApi methods randomly for fetching the same data. The WebApi is hosted on Azure Worker Role. It's as self hosted WebApi using OWIN. The error goes away if i restart the worker role, but comes back gain after few hours. I have tried adding null checks at various locations in my code. But every time the error popups up at some different place.
I have tried taking the backup of the Database and test from my local machine but the issue does not repro.
Can some one please guide me in debugging this?