SharePoint Blogs / SharePoint University
SharePoint Blogs and SharePoint University - all in one place!
Need SharePoint Training? Attend a SharePoint Bootcamp!

Please delete cookies related to sharepointblogs.com and sharepointu.com to resolve login issues!

Object reference error in deploying webpart cab file

Well, I know I have run this command numerous times already:

stsadm -o addwppack -filename <abc.cab> -globalinstall -force

But today, when I tried to run this command again, I got the message:

Object reference not set to an instance of an object

Webpart deployment failed.

The first thing I thought of is permission issue, I am running this command with an logged in account which is a member of the administrators group on both the WFE and SQL Servers but this account is not the same as the database access account I used when going thru configuration wizard. So I just go to Central Administration and added myself to have full control to the web application that I am interested at and also added myself to be part of the farm administrator group. (That should really do the trick - I thought to myself)

No luck. Same error message.

Added myself to be part of the security groups related to MOSS on WFE?

Still...... No luck.

Next, I went into SQL Server. I noticed that the logged in account I used don't have any access at all to the admin_content database, so I added the account as db_owner to admin_content.

YES! This works!

Really, new things learned in every brand new day Smile


Posted 09-24-2008 10:38 AM by jleung

Comments

Pages tagged "reference" wrote Pages tagged "reference"
on 09-26-2008 1:04 AM

Pingback from  Pages tagged "reference"

Add a Comment

(required)  
(optional)
(required)  
Remember Me?
Need SharePoint Training? Attend a SharePoint Bootcamp!
Posts (c) their respective authors. Everything else (c) 2009 SharePoint Experts, Inc.