“Object reference not set to an instance of an object” executing STSADM commands
Posted on 24. Aug, 2009 by bryan in SharePoint
If you are attempting to execute STSADM commands, and are receiving the ominous “Object reference not set to an instance of an object” error, make sure that the user account that are using to execute STSADM has permissions to the SQL database. I ran into an issue today where the domain account had permissions to the WFE but not to the SQL server, and whereas I could work in Central Admin, and perform other Farm Administrator duties, STSADM commands were failing with the above error. Once my account was added to the local Administrators group of the SQL server the STSADM commands executed without fail.


sacchit
02. Feb, 2010
thank you that saved some time
Praveen
06. Nov, 2010
Here is the exact solution for what you are looking for.
http://praveenbattula.blogspot.com/2010/11/stsadm-object-reference-not-set-to.html
Good luck.
kk
08. Apr, 2011
I am getting error like this:
FatalError: Object reference not set to an instance of an object.
at Microsoft.SharePoint.Deployment.ContentTypeSerializer.GetContentType(SPCon
tentType sourceContentType, ImportObjectManager importObjectManager, Boolean isP
arentSystemObject)
at Microsoft.SharePoint.Deployment.ContentTypeSerializer.ProcessContentType(S
PContentType sourceContentType, String contentTypeXml, ImportObjectManager impor
tObjectManager, Boolean IsParentSystemObject)
at Microsoft.SharePoint.Deployment.ContentTypeSerializer.SetObjectData(Object
obj, SerializationInfo info, StreamingContext context, ISurrogateSelector selec
tor)
at Microsoft.SharePoint.Deployment.XmlFormatter.ParseObject(Type objectType,
Boolean isChildObject)
at Microsoft.SharePoint.Deployment.XmlFormatter.DeserializeObject(Type object
Type, Boolean isChildObject, DeploymentObject envelope)
at Microsoft.SharePoint.Deployment.XmlFormatter.Deserialize(Stream serializat
ionStream)
at Microsoft.SharePoint.Deployment.ObjectSerializer.Deserialize(Stream serial
izationStream)
at Microsoft.SharePoint.Deployment.ImportObjectManager.ProcessObject(XmlReade
r xmlReader)
at Microsoft.SharePoint.Deployment.SPImport.DeserializeObjects()
at Microsoft.SharePoint.Deployment.SPImport.Run()