Archived Forum Post

Index of archived forum posts

Question:

Could not load file or assembly 'ChilkatDotNet4.dll' or one of its dependencies. The specified module could not be found.

Oct 14 '15 at 17:18

Windows Server 2008.
VC x64 and x32 both installed.
CK DLL loaded into GAC on both dev and server.
CK DLL is NOT a trial.

DLL Reference in C# class from GAC on local machine:
C:WindowsMicrosoft.NetassemblyGAC_64ChilkatDotNet4v4.0_9.5.0.52__eb5fc1fc52ef09bdChilkatDotNet4.dll

Verified DLL exists (both dev and server):
C:WindowsMicrosoft.NETassemblyGAC_32ChilkatDotNet4v4.0_9.5.0.52eb5fc1fc52ef09bd
C:WindowsMicrosoft.NETassemblyGAC_64ChilkatDotNet4v4.0_9.5.0.52
eb5fc1fc52ef09bd

.NET 4.0, instanced via DLL from MVC3 project. DLL loads and operates correctly when running locally in VS2010 however the error occurs when project is published.

    [FileNotFoundException: Could not load file or assembly 'ChilkatDotNet4.dll' or one of its dependencies. The specified module could not be found.]
   Kore.EncryptionUtilities..cctor() +0

[TypeInitializationException: The type initializer for 'Kore.EncryptionUtilities' threw an exception.]
   Kore.EncryptionUtilities.EncryptString_AES(String StringToEncrypt, String EncryptionKey) +0
   ASP.views_home_index_aspx.__RenderMainContent(HtmlTextWriter __w, Control parameterContainer) +1022
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +131
   ASP.views__masters_site_master.__Render__control1(HtmlTextWriter __w, Control parameterContainer) +646
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +131
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +246
   System.Web.UI.Page.Render(HtmlTextWriter writer) +40
   System.Web.Mvc.ViewPage.Render(HtmlTextWriter writer) +65
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5274