I am trying to run a geo-processing task using Java Script API for ArcGIS. I have created a simple buffer task, published using ArcGIS server (synchronous) and used the same (almost) code as the view shed example . The view shed runs fine, but it fails with my REST service with the following error.
Server Error - Object reference not set to an instance of an object. Code: 500
I have browsed a lot and did some changes with respect but nothing seems to work. Has anyone experienced this?