I am using Aspose Word version 3.1.1.0.
This is an existing application (.Net 2.0) that was working well on win XP. The development environment moved to Vista RC2 at work. Now the code gives the following error during build:
Error 1 The "GenerateTrustInfo" task failed unexpectedly.
System.BadImageFormatException: Could not load file or assembly 'D:\Working\SourceSafe\Application\AppName\ExternalDlls\Aspose.Word.dll' or one of its dependencies. The module was expected to contain an assembly manifest.
File name: 'D:\Working\SourceSafe\Application\AppName\ExternalDlls\Aspose.Word.dll'
at System.Reflection.AssemblyName.nGetFileInformation(String s)
at System.Reflection.AssemblyName.GetAssemblyName(String assemblyFile)
at Microsoft.Build.Tasks.Deployment.ManifestUtilities.SecurityUtilities.RemoveNonReferencedPermissions(String[] setToFilter, ITaskItem[] dependencies)
at Microsoft.Build.Tasks.Deployment.ManifestUtilities.SecurityUtilities.GetNamedPermissionSet(String name, ITaskItem[] dependencies)
at Microsoft.Build.Tasks.Deployment.ManifestUtilities.SecurityUtilities.GetNamedPermissionSetFromZone(String targetZone, ITaskItem[] dependencies)
at Microsoft.Build.Tasks.Deployment.ManifestUtilities.SecurityUtilities.ComputeZonePermissionSet(String targetZone, PermissionSet includedPermissionSet, String[] excludedPermissions, ITaskItem[] dependencies)
at Microsoft.Build.Tasks.GenerateTrustInfo.Execute()
at Microsoft.Build.BuildEngine.TaskEngine.ExecuteTask(ExecutionMode howToExecuteTask, Hashtable projectItemsAvailableToTask, BuildPropertyGroup projectPropertiesAvailableToTask, Boolean& taskClassWasFound)
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].
Please help. Thanks.
Jojy