You said: "It happened to work on same config test machine but not working in production." and "How can I debug this behavior?"
in reply to Why my code working...why my code is not working...
- Determine the difference(s) between your Production machine and your test machine.
- Correct the setup of the test machine to accurately reflect the Production world.
- Debug your code on the test machine using your normal tools.
- Deploy to production and observe the results.
I Go Back to Sleep, Now.