Word DOCX to PDF Conversion C# .NET | Could not Load File or Assembly | ASP.NET Cache | Assembly Binding Logging is Turned OFF

This is the error that is being produced when we attempt to run the pdf conversion…
2012-04-12 16:54:18,682 [5] ERROR - Failed to run Document Service

System.IO.FileLoadException: Could not load file or assembly 'Aspose.Words, Version=6.2.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
ile name: 'Aspose.Words, Version=6.2.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56'

at HPM.WindowsService.DocumentUtil.ReadDocumentServiceQueue()
at HPM.WindowsService.Service.OnDocumentServiceTimer(Object source, ElapsedEventArgs e)
WRN: Assembly binding logging is turned OFF.

To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
Any help on what could be causing this issue would be great.

Hi Naren,

Thanks for your inquiry. Might be something wrong with the ASP.NET cache, have you tried clearing the Temporary ASP.NET Files folder? The ASP.NET cache is somewhat looks mysterious to me. Moreover, I would suggest you please first remove Aspose.Words completely from your system. Then remove the reference to old Aspose.Words.dll from your project. Also, delete associated files from your project’s bin folder if present. Then install the latest version of Aspose.Word via msi installer. Add reference to this new DLL in your project and re-build it. Please let us know how it goes on your side.

Also, I think the following thread might answer some of your question and maybe help you to resolve the problem:
http://forums.asp.net/t/1088939.aspx/1

I hope, this will help.

Best Regards,