Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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
1  
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
add comment

1 Answer

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,

http://stackoverflow.com/questions/6199246/how-to-show-a-reference-of-the-shared-assembly-in-the-net-add-reference-dialog

http://www.csharp411.com/adding-assemblies-to-the-visual-studio-add-reference-dialog/

http://stackoverflow.com/questions/2068159/could-not-load-file-or-assembly-microsoft-mshtml-strong-name-validation-fai

EDIT another way of resolving problem you got,

http://social.msdn.microsoft.com/Forums/pl/csharpgeneral/thread/435cd65e-48c3-4a1d-965f-191bd80e9896

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 Microsoft.net > 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
add comment

Your Answer

 
discard

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.