2016-07-28 33 views
0

由於我缺乏經驗,所以對於缺乏知識表示歉意。用於VB.NET的Visual Basic 2015項目在XP中工作

我已經創建了一個使用Visual Basic 2015的VB.NET應用程序,但是當我嘗試在XP專業版2002 SP3上運行應用程序時,出現以下錯誤消息。

我已經爲我的生活不知道如何解決這個問題。該應用程序創建的.net框架是4.5.2。

應用程序完美的作品在Windows 7和Windows 10

然而,問題只在XP

PLATFORM VERSION INFO 
Windows    : 5.1.2600.196608 (Win32NT) 
Common Language Runtime  : 4.0.30319.269 
System.Deployment.dll  : 4.0.30319.1 (RTMRel.030319-0100) 
clr.dll    : 4.0.30319.269 (RTMGDR.030319-2600) 
dfdll.dll   : 4.0.30319.1 (RTMRel.030319-0100) 
dfshim.dll   : 4.0.31106.0 (Main.031106-0000) 


SOURCES 
    Deployment url   : file:///C:/Documents%20and%20Settings/rwuser/Desktop/Disk%20Cleanup%20Toolkit/drive_cleanup.application 

ERROR SUMMARY 
    Below is a summary of the errors, details of these errors are listed later in the log. 
    * Activation of C:\Documents and Settings\rwuser\Desktop\Disk Cleanup Toolkit\drive_cleanup.application resulted in exception. Following failure messages were detected: 
     + Exception reading manifest from file:///C:/Documents%20and%20Settings/rwuser/Desktop/Disk%20Cleanup%20Toolkit/drive_cleanup.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 
    * [28/07/2016 09:56:20] : Activation of C:\Documents and Settings\rwuser\Desktop\Disk Cleanup Toolkit\drive_cleanup.application has started. 

ERROR DETAILS 
    Following errors were detected during this operation. 
    * [28/07/2016 09:56:21] System.Deployment.Application.InvalidDeploymentException (ManifestParse) 
     - Exception reading manifest from file:///C:/Documents%20and%20Settings/rwuser/Desktop/Disk%20Cleanup%20Toolkit/drive_cleanup.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& sourceUri, TempFile& tempFile, SubscriptionState& subState, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation) 
      at System.Deployment.Application.DownloadManager.DownloadDeploymentManifestBypass(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, SubscriptionState& subState, IDownloadNotification notification, DownloadOptions options) 
      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) 
     --- 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& 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. 
+0

Windows XP現在已經過時。最好不要考慮它。 –

+0

我知道,但我工作的公司仍然使用XP!大聲笑。 –

回答

0

XP只支持.NET Framework達版本4.0。如果您想在XP上運行它,您需要將目標框架更改爲4並重新編譯該項目。

https://blogs.msdn.microsoft.com/dotnet/p/dotnet45xp/

+0

我做到了這一點,但經過多次討論後並沒有解決問題。相反,在我的腳本中,我使用的是WMI查詢,它實際上並不適用於XP。因此,將WIM更改爲system managementSearch並使其工作。 –

相關問題