Reputation: 7153
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
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
Reputation: 385
Check whether you have enough permissions to the corresponding content database to which you are adding the solution.
Upvotes: 2