Thursday 22 May 2014

The property or field 'Id' has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested

The property or field 'Id' has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested
You are missing
ctx.Load(objname);
ctx.ExecuteQuery();