SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Error: Cannot find this file specified in the manifest file: ChangeContentTypeEventHandler.dll

I'm getting this error when attempting to deploy this solution to the Sharepoint environment. Here is my manifest.xml:

<?xml version="1.0" encoding="utf-8"?>
<Solution xmlns=""
   SolutionId="F9850E13-81B6-47E1-BBC6-42AC70A903C3" >
     <FeatureManifest Location="List\Feature.xml"/>
     <Assembly DeploymentTarget="GlobalAssemblyCache" Location="ChangeContentTypeEventHandler.dll"/>

Here is my deploy.ddf:

.OPTION Explicit ; Generate errors
.Set DiskDirectory1="..\bin"
.Set CabinetNameTemplate="ChangeContentType.wsp"

.Set DestinationDir="List\ListTemplates"
List\ListTemplates\ListManifest.xml ; specify cab file name
.Set DestinationDir="List\Messages"
.Set DestinationDir="List"
..\bin\ChangeContentTypeEventHandler.dll ChangeContentTypeEventHandler.dll

I have confirmed that ChangeContentTypeEventHandler.dll is in the bin folder above the Source folder where the manifest.xml and deploy.ddf files exist.

Any suggestions or reasons why my deployment is unable to find this file?

share|improve this question
up vote 3 down vote accepted

Your DLL needs to be at the same level as the manifest.xml inside your WSP (ie: the root level).

Looks like it's ending up in the "List" folder at the minute.

share|improve this answer
I think you may be right James, but how to change the code to do this? I was under the impression that the following line [..\bin\ChangeContentTypeEventHandler.dll ChangeContentTypeEventHandler.dll] would find the file in the bin directory of my project – Music Magi Jun 6 '11 at 19:28
Your .Set DestinationDir is confusing it. Try .Set DestinationDir=. (with just a dot at the end) just before the line where you declare your dll in the bin dir (but only declare it once). – James Love Jun 6 '11 at 19:36
That worked. Now I'm getting an issue with the runtime version. Thanks for your help again today, James! – Music Magi Jun 6 '11 at 19:40
No worries dude :) – James Love Jun 6 '11 at 19:49

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.