title: Application will not run on windows xp
body: <p>I have created a vb.net application using Visual Studio 2013, I have published it and installed it on my work pc (windows 7) and my laptop (also windows 7) and they both work fine. I tried installing it on the pc this application is to go on which is windows xp, I got an error with the following details:</p>
  
  <pre><code>PLATFORM VERSION INFO
  Windows             : 5.1.2600.196608 (Win32NT)
  Common Language Runtime     : 4.0.30319.1022
  System.Deployment.dll       : 4.0.30319.1 (RTMRel.030319-0100)
  clr.dll             : 4.0.30319.1022 (RTMGDR.030319-1000)
  dfdll.dll           : 4.0.30319.1 (RTMRel.030319-0100)
  dfshim.dll          : 4.0.31106.0 (Main.031106-0000)
  
  SOURCES
  Deployment url          : file:///D:/Visitors.application
  
  ERROR SUMMARY
  Below is a summary of the errors, details of these errors are listed later in the log.
  * Activation of D:\Visitors.application resulted in exception. Following failure messages were detected:
      + Exception reading manifest from file:///D:/Visitors.application: the manifest may not be valid or the file could not be opened.
      + Manifest XML signature is not valid.
      + SignatureDescription could not be created for the signature algorithm supplied.
  
  COMPONENT STORE TRANSACTION FAILURE SUMMARY
  No transaction error was detected.
  
  WARNINGS
  There were no warnings during this operation.
  
  OPERATION PROGRESS STATUS
  * [14/08/2014 13:43:54] : Activation of D:\Visitors.application has started.
  
  ERROR DETAILS
  Following errors were detected during this operation.
  * [14/08/2014 13:44:00] System.Deployment.Application.InvalidDeploymentException (ManifestParse)
      - Exception reading manifest from file:///D:/Visitors.application: the manifest may not be valid or the file could not be opened.
      - Source: System.Deployment
      - Stack trace:
          at System.Deployment.Application.ManifestReader.FromDocument(String localPath, ManifestType manifestType, Uri sourceUri)
          at System.Deployment.Application.DownloadManager.DownloadDeploymentManifestDirectBypass(SubscriptionStore subStore, Uri&amp; sourceUri, TempFile&amp; tempFile, SubscriptionState&amp; subState, IDownloadNotification notification, DownloadOptions options, ServerInformation&amp; serverInformation)
          at System.Deployment.Application.DownloadManager.DownloadDeploymentManifestBypass(SubscriptionStore subStore, Uri&amp; sourceUri, TempFile&amp; tempFile, SubscriptionState&amp; subState, IDownloadNotification notification, DownloadOptions options)
          at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String&amp; errorPageUrl)
          at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
      --- Inner Exception ---
      System.Deployment.Application.InvalidDeploymentException (SignatureValidation)
      - Manifest XML signature is not valid.
      - Source: System.Deployment
      - Stack trace:
          at System.Deployment.Application.Manifest.AssemblyManifest.ValidateSignature(Stream s)
          at System.Deployment.Application.ManifestReader.FromDocument(String localPath, ManifestType manifestType, Uri sourceUri)
      --- Inner Exception ---
      System.Security.Cryptography.CryptographicException
      - SignatureDescription could not be created for the signature algorithm supplied.
      - Source: System.Security
      - Stack trace:
          at System.Security.Cryptography.Xml.SignedXml.CheckSignedInfo(AsymmetricAlgorithm key)
          at System.Security.Cryptography.Xml.SignedXml.CheckSignature(AsymmetricAlgorithm key)
          at System.Security.Cryptography.Xml.SignedXml.CheckSignatureReturningKey(AsymmetricAlgorithm&amp; signingKey)
          at System.Deployment.Internal.CodeSigning.SignedCmiManifest.Verify(CmiManifestVerifyFlags verifyFlags)
          at System.Deployment.Application.Manifest.AssemblyManifest.ValidateSignature(Stream s)
  
  COMPONENT STORE TRANSACTION DETAILS
  No transaction information is available.
  </code></pre>
  
  <p>This is the first time I have published an application so I don't know why this is happening, I can only assume that it has something to do with windows xp. I would appreciate any help with this problem.</p>
  
  <p>Update:</p>
  
  <p>The .NET framework is targeted at 4.0, and the target cpu was 'Any CPU' and I changed it to x86. The xp pc in question has .NET4.0, XP SP3 and is 32-bit but this still hasn't solved my problem. Also, I am using sql server 2008r2 express in this application if that makes any difference. 
   The old error is not coming up and the new one says:
   'SqlExpress2008R2 is not a valid Win32 application.' </p>
  
  <p>Update 2:</p>
  
  <p>As well as having to do what I said in my first update, I also had to change the signing from 'Sign the ClickOnce manifests' to 'Sign the assembly' and my application is now working on windows xp. </p>