Deploy Error : Object reference not set to an instance of an object

Posted: May 11, 2009 in Development
Tags: ,

Sometimes when you want to deploy your solution or custom web part on the server , However everything is OK and the code is built successfully but you encounter this error.

Object reference not set to an instance of an object

It may be because of the existing deployed solutions. Mark Arend has written a good post about workaround this problem.

it is :

  1. Save & Close Visual Studio
  2. Retract & Remove deployed solutions. It mean the solutions that you want to deploy again. The quickest way to uninstall is to open a command window to the directory of your Project\bin\debug folder and enter setup /uninstall.  This runs faster than the solution management page in central administration Operation tab.  (that one’s performed by a timer job, which has a “now” setting but still seems to take a minute to launch itself).
  3. iisreset /noforce
  4. Open Visual Studio and deploy again .
Advertisements
Comments
  1. I tend not to create a lot of responses, however I browsed
    a few remarks on Deploy Error : Object reference not set to an instance of an object
    | SNR SharePoint Blog. I do have a couple of questions for you if it’s allright. Is it just me or does it look like a few of these responses appear like they are left by brain dead individuals? 😛 And, if you are posting on additional online sites, I would like to keep up with you. Could you make a list of all of all your social pages like your linkedin profile, Facebook page or twitter feed?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s