Domanda

I built a custom timer job and created a configuration page (.aspx) for it.

Going through the Central Administration site, I can get the to configuration page. When I enter values and click "OK" to save the values, I get a "Object reference not set to an instance of an object." error.

I've tried attaching VS2010 to all the W3WP processes that I have listed (for all users) with no luck.

Am I missing something? Isn't the W3WP process running the Central Admin site?

È stato utile?

Soluzione

Couple of extra suggestions:

  1. I assume you are debugging locally on the machine that is running central admin. If there are multiple servers in the farm, just make sure you are on the server that is actually running central admin.
  2. Try killing the vssphost4 process, and then restart visual studio. I have found that the method VS (which is 32 bit) uses to debug SP2010 (which is 64 bit) gets a little sideways sometimes, and just needs to be restarted.

Altri suggerimenti

  • The binaries are in GAC, so the symbols files(pdb) should be copied into GAC folder

OR

  • Copy the dll into bin with CAS or Fulltrust (not recommended only in worst case DEV)

Hope this blog post helps http://www.sharepointnutsandbolts.com/2007/03/how-to-debug-sharepoint-feature.html

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a sharepoint.stackexchange
scroll top