You'll probably get more and better answers in the appropriate forum: Geoprocessing or Spatial Analyst.
From your post, I'll toss out an uneducated guess; are you using the getcellvalue on a raster that isn't a multiband (aka an image)? If so, my guess is you'll need to be licensed for the spatial analyst extension.