BadImageFormatException RRS feed

  • Question

  • I have a ClickOnce app that has been successfully installed and upgraded over the last 4 months on 50 machines. Today one machine gives the following error:

     Following errors were detected during this operation.
     * [5/13/2009 10:08:56 AM] System.BadImageFormatException
      - The module was expected to contain an assembly manifest. (Exception from HRESULT: 0x80131018)
      - Source: System.Deployment
      - Stack trace:
       at System.Deployment.Application.NativeMethods.IAssemblyCache.QueryAssemblyInfo(Int32 flags, String assemblyName, AssemblyInfoInternal& assemblyInfo)
       at System.Deployment.Application.Win32InterOp.SystemUtils.QueryAssemblyInfo(QueryAssemblyInfoFlags flags, String assemblyName)
       at System.Deployment.Application.PlatformDetector.VerifyGACDependencyWhidbey(ReferenceIdentity refId)
       at System.Deployment.Application.PlatformDetector.VerifyGACDependency(ReferenceIdentity refId, String tempDir)
       at System.Deployment.Application.PlatformDetector.VerifyPlatformDependencies(AssemblyManifest appManifest, Uri deploySupportUri, String tempDir)
       at System.Deployment.Application.ApplicationActivator.DownloadApplication(SubscriptionState subState, ActivationDescription actDesc, Int64 transactionId, TempDirectory& downloadTemp)
       at System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState& subState, ActivationDescription actDesc)
       at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
       at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)

    The app can still be installed on all other machines and so I don't think there is actually a corrupt file.

    This is VS 2008 and on the machine with the problem it doesn't matter what user profile is attempting to do the install. The application runs fine if it is copied directly to the machine. Logging on as an admin and deleting the Apps folder also does not help.

    Any help would be appreciated. Thanks
    Wednesday, May 13, 2009 2:33 PM

All replies