Tuesday, May 7, 2013

The SSP Timer Job Distribution List Import Job was not run and other errors...

SharePoint error in the event viewer logs.

The SSP Timer Job Distribution List Import Job was not run.
Reason: Logon failure: unknown user name or bad password



I have run into this problem even when I have not changed the password.  I tried the fix to add the service account to the backup operators group and that did not completely fix the problem.  Additionally, I have notice that I have had a lot of other mysterious SharePoint Server Errors  What you need to do to correct this problem is:

1.     One of Microsoft’s best practices is to make sure that the application pool account for your SSP and your service account for the SSP are the same account.
2.     Make sure to add this account to the backup operator’s local group on all your SharePoint servers.
3.     If you are using Kerberos authentication for your web applications make sure you set your service name principle account for you ssp on you SharePoint application server.  In order to complete this operation you must install Window support tools from your Windows server installation files under support>>tools>>supporttools.msi.  Once you have installed the support tools go to start>>All programs>> Windows support tools>> command prompt.

setspn.exe –A HTTP/name_of_ssp_address domain\appication

Assume your site address is ssp, your domain is sharePoint, and your application pool account is svc_ssp. Run these commands

setspn.exe –A HTTP/ssp SharePoint\svc_ssp       (Run this Command)

setspn.exe –A HTTP/ssp.sharepoint.com SharePoint\svc_ssp  (Run this command)

If you are using Kerberos authentication on any of your web applications you must run these commands for the web applications to function properly including your central administration site.
4.     Check your system event logs on your SharePoint server for any DCOM errors.  You will notice your DCOM errors are associated with your application pool accounts.  Add these acounts to the IIS WAMREG admin service.  Make sure the accounts have local launch, remote launch, local activation, and remote activation.
5.     Next stop your Office SharePoint Server Search through central administation>> operations>> Services on Server.
6.     Then go to central administration>> operations>> service accounts.  Click on web application pool.  Then under web service choose Windows SharePoint Service Web application.  Next under application pool, choose your Shared Service Provider application pool account.  Under configurable you will notice that it populated your application pool account.  Now re-enter your password and click ok.
7.     Login into all your SharePoint servers and run iisreset /noforce.
8.     Go back to central administation>> operations>> Services on Server and restart your Office Server Search.
9.     Then go to central administation>>Application Management>> Manage this Farm's Shared Services.  click the drop down on the default SSP and click edit properties.  In the SSP service credentials enter username and password.  In the index server catagory select your index server and then click ok. Make sure you wait about 5 minutes.
Spent a lot of time trouble shooting the SharePoint errors and I hope this information helps.

Wednesday, May 1, 2013

Debug a SharePoint Class Library with VS 2008 or STSADM Project


Debug AudienceMigration Class Library Project:
Thanks to Magnum for the solution... see the below url for more inforation.

Solution:

1. Project configuration:

Change Debug and Build Configurations to Debug..

2. I was using a DLL called SharePoint.AudienceMigration.dll (Managed DLL for C#). I knew, however, that SharePoint.AudienceMigration.dll needed SharePoint.AudienceMigration.dll (Unmanaged C++) to operate. I placed SharePoint.AudienceMigration.dll in all my output paths but I kept receiving this error. Only after I placed SharePoint.AudienceMigration.dll in my environment path (C:\windows\Microsoft.Net\Framework\v2.0.50727) did it work. Please note: your path may be different if you're using a newer version of the .NET framework!

3. Build the project and buildwsp and deploy...
4. Move the SharePoint.AudienceMigration.dll to (C:\windows\Microsoft.Net\Framework\v2.0.50727) and also to (C:\windows\assembly)

5. Place breakpoints at start of the project and F5.