Issue updating DigestValue

Discussion in 'Scripting' started by chrisgun, Jan 28, 2023.

  1. chrisgun

    chrisgun MDL Novice

    Feb 28, 2012
    35
    2
    0
    Hi,

    I am trying to help a chairty but im very limited on scrips/programing.

    They have an application that searchs the Server. It looks like it usines ClickOnce.

    It has servial files.

    Search.application
    search.exe.deploy
    search.exe.manifest
    Microsoft.Search.Interop.dll.deploy

    we had to edit the search.application as the file path had change due to a new server being installed. It now wont work due to below

    Code:
        Below is a summary of the errors, details of these errors are listed later in the log.
       * Activation of E:\CompanyData\Apps\Search\Application Files\Search_1_0_0_19\Search.application resulted in exception. Following failure messages were detected:
           + Exception reading manifest from file:///E:/CompanyData/Apps/Search/Application%20Files/Search_1_0_0_19/Search.application: the manifest may not be valid or the file could not be opened.
           + Manifest XML signature is not valid.
           + The digital signature of the object did not verify.
    I assume this error is beacuse I have changed the path, But I have no clue on how to regenerate the DigestValue that is in the Search.application file


    Code:
      <dependency>
        <dependentAssembly dependencyType="install" codebase="Application Files\Search_1_0_0_19\Search.exe.manifest" size="8140">
          <assemblyIdentity name="Search.exe" version="1.0.0.19" publicKeyToken="cc984ed8c738a131" language="neutral" processorArchitecture="msil" type="win32" />
          <hash>
            <dsig:Transforms>
              <dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
            </dsig:Transforms>
            <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
            <dsig:DigestValue>/1pYTuJRvtrm1mAJGreLLWwa91I=</dsig:DigestValue>
          </hash>
        </dependentAssembly>
      </dependency>
    Anyone able to assist me in regenerating the hash as I have no clue.
     
  2. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,300
    91,411
    340