r.r
r.r

Reputation: 7153

stsadm -addsolution "Object reference not set to an instance of an object"

I am trying to deploy sharepoint webpart. Till executig in command prompt following command:

stsadm -o addsolution -filename {WSPFILENAME}

getting alway follow error: "Object reference not set to an instance of an object" no idea why. wspfilename is correct. please help

Upvotes: 0

Views: 6866

Answers (2)

Ahmed Salem
Ahmed Salem

Reputation: 60

I got this error, while deploying the solution from Visual Studio. I solved it by the Visual Studio and reopening it with "Run as Administrator". This should give you the required permission.

Upvotes: 0

Deepu Nair
Deepu Nair

Reputation: 385

Check whether you have enough permissions to the corresponding content database to which you are adding the solution.

Upvotes: 2

Related Questions