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

I have only .dll file. I have assigned strong name to dll using ilasm command. I want to register it in GAC but i am getting following error:

Dll Name :DDayICal.dll

C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\NETFX 4.0 Tools>gacutil -i "C:\Users\Administrator\Desktop\DDayICal.dll.dll" Microsoft (R) .NET Global Assembly Cache Utility. Version 4.0.30319.1 Copyright (c) Microsoft Corporation. All rights reserved.

Failure adding assembly to the cache: The system cannot find the file specifie d.

share|improve this question
It's called DDayICal.dll.dll? Not just DDayICal.dll – eirikb Oct 20 '12 at 12:53
Sorry Its my mistake. just DDayICal.dll – Viraj Gorajia Oct 20 '12 at 13:02
up vote 1 down vote accepted

Make sure the dll you downloaded matches your development machine as if both are for x86 processors or if they are for 64 bit, if that's fine then just drag and drop DDayICal.dll to Gac and do a IISReset, and reference it to your project as well, it should work straight away without giving an error for strong file name, however you should check these links out as they got similar type of problem,

EDIT another way of resolving problem you got,

Hope it helped :)

share|improve this answer
Drag and Drop strategy for Dlls into Gac isn't recommended FYI. – Muhammad Raja Oct 20 '12 at 13:48
you should be creating a solution file using wsp builder for your webpart :) – Muhammad Raja Oct 20 '12 at 13:49
I think so You are right..But I have registered dll in > GAC_MSIL.. But again it gives error "Could not load assembly. The system can not find the File specified." And not working drag and drop strategy for this dll.. It's third party dll. So I have no code. Plz help me.. Its urgent.. – Viraj Gorajia Oct 22 '12 at 4:43

Just execute the next bit running as local administrator.

[System.Reflection.Assembly]::Load("System.EnterpriseServices, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")            
$publish = New-Object System.EnterpriseServices.Internal.Publish            
share|improve this answer

Instead of using drag and drop, use powershell or gacutil.

Powershell example:


share|improve this answer

We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.

a server would not have gacutil – Pantani Jan 6 at 9:12

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.