SharePoint 2007 Content Deployment - Error: Missing DLL, Web part, Feature, etc

Thursday, 14 February 2008 00:14 by RanjanBanerji

During Content Deployment one source of errors is when the destination server is not built up with all same custom code as the source server.  It is important that you deploy all your solutions, features etc to the destination servers before you start a Content Deployment.  Always use solutions to deploy your code. (A subject for another post).

But what if you installed all your custom code and you still get errors like:

2/13/2008 3:12 AM Could not find WebPart Microsoft.SharePoint.dll v2.0.50727 in the safe controls list. 
2/13/2008 3:12 AM Could not find WebPart Microsoft.SharePoint.Portal.dll v2.0.50727 in the safe controls list. 
2/13/2008 3:12 AM Could not find WebPart Microsoft.SharePoint.Publishing.dll v2.0.50727 in the safe controls list. 
2/13/2008 3:12 AM Could not find WebPart Microsoft.Office.Server.Search.dll v2.0.50727 in the safe controls list. 

 

Note these DLLs are not even custom code.  Thoss errors will look like:

2/13/2008 3:12 AM Could not find WebPart abc.dll v2.0.50727 in the safe controls list. 
2/13/2008 3:12 AM Could not find WebPart [Unknown: e00c1c31-ev55-ceu2-8c9c-69ee3dh5b1dc] in the safe controls list. 
2/13/2008 3:12 AM Could not find WebPart [Unknown: 1274a4fy-c7h6-mbcc-c55n-d08e2d4c7f6b] in the safe controls list. 
2/13/2008 3:12 AM Could not load file or assembly 'qwerty, Version=1.0.0.0, Culture=neutral,

 

Why would this happen if you deployed all your code?  And why would you get errors about missing SharePoint DLLs? 

It happens when you do not start the Windows SharePoint Services Web Application on the machine running Central Administration.  If you do not start this service then any solution deployed, will not be added to this machine.  Since Content Deployment is setup as a process between the two CA servers it is important that the web application is turned on.  You do not have to use this machine for the purpose of being a WFE, but the service should be started.  Once you do so all your custom code will get deployed to this server too and you will not get these errors during Content Deployment.

Tags:  
Categories:   SharePoint
Actions:   E-mail | Permalink | Comments (4) | Comment RSSRSS comment feed

Comments

February 20. 2008 17:02

Michhes

A useful thing to know about REstarting the WSS Web Application service (Central Admin --> Operations --> Services on server)...

mindsharpblogs.com/.../1473.aspx

Basically, restarting (as opposed to simply starting) the service will wipe all customisations).

I'm getting a "Could not find WebPart [Unknown: ...] in the safe controls list." warning but this service was already started. Restarting the service and redeploying customisations had no effect Frown

Michhes

May 29. 2008 00:49

Ajay

Hi Ranjan,
I have set up a site on staging server, and then set up the same site on production farm which has 2 wfe and tested and site works fine.
Then I delete the site collection and create an empty site collection and run the content deployment job.

I get the message that cannot find dll... now that dll is on all the servers as I had the site working on production servers before.. can you please help me with some pointers or suggestions.

Cheers,
Ajay

Ajay

February 19. 2009 23:44

Ibrahim

I have similar issue.
I have deployed all the solutions at destination server and when I try to run the Content deployment job, it gives the issue that can not load ......type from XYZ.dll

any idea, why it is like this, any resolution?

Ibrahim

February 22. 2009 04:26

ranjanbanerji

Ibrahim,

Not sure.  Have you confirmed that all DLLs are on the server and that the "Windows SharePoint Services Web Application" is running on the destination server (The CA box)?  Perhaps an IIS Reset?

Check your logs to make sure your solutions deployed correctly.  Any inconsistency seems to break content deployment.

Thanks,

Ranjan

ranjanbanerji

Add comment


(Will show your Gravatar icon)

  Country flag

biuquote
  • Comment
  • Preview
Loading