0

我有一个需要 4 个先决条件的应用程序:dotnetfx40然后,我将文件夹放在 a 上ReportViewer并在其上创建新的,以便从服务器安装它以供我们团队使用。vbpowerpackswindowsinstaller3_1publishingclickoncelocal networkapplicationIIS

当我尝试在任何计算机上安装它时,首先它会安装所有先决条件,然后开始安装应用程序。

在安装过程中,如果我单击并尝试从已安装的相同位置安装它,则会出现Application Installation corrupted带有 2 个按钮OK和“详细信息”的错误消息,并且由于安装了所有先决条件,因此工作正常。OKURL

但是如果我单击Details文本文档,则会出现以下内容:

PLATFORM VERSION INFO
Windows             : 5.1.2600.196608 (Win32NT)
Common Language Runtime     : 2.0.50727.3649
System.Deployment.dll       : 2.0.50727.3053 (netfxsp.050727-3000)
mscorwks.dll            : 2.0.50727.3649 (GDR.050727-3600)
dfdll.dll           : 2.0.50727.3053 (netfxsp.050727-3000)
dfshim.dll          : 4.0.31106.0 (Main.031106-0000)

SOURCES
Deployment url          : http://myhost/myAppl/myAppl.application
                    Server      : Microsoft-IIS/7.5
                    X-Powered-By    : ASP.NET
Deployment Provider url     : http://myhost/myAppl/myAppl.application
Application url         : http://myhost/myAppl/Application%20Files/myAppl_1_0_0_54/myAppl.exe.manifest
                    Server      : Microsoft-IIS/7.5
                    X-Powered-By    : ASP.NET

IDENTITIES
Deployment Identity     : myAppl.application, Version=1.0.0.54, Culture=neutral, PublicKeyToken=0000000000000000, processorArchitecture=msil
Application Identity        : myAppl.exe, Version=1.0.0.54, Culture=neutral, PublicKeyToken=0000000000000000, processorArchitecture=msil, type=win32

APPLICATION SUMMARY
* Installable application.
* Trust url parameter is set.
ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of http://myhost/myAppl/myAppl.application resulted in exception. Following failure messages were detected:
    + Exception occurred loading manifest from file myAppl.resources.dll: the manifest may not be valid or the file could not be opened. 
    + Cannot load internal manifest from component file.

COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.

WARNINGS
* The manifest for this application does not have a signature. Signature validation will be ignored.
* The manifest for this application does not have a signature. Signature validation will be ignored.

OPERATION PROGRESS STATUS
* [10/29/2013 3:32:58 PM] : Activation of http://myhost/myAppl/myAppl.application has started.
* [10/29/2013 3:32:59 PM] : Processing of deployment manifest has successfully completed.
* [10/29/2013 3:32:59 PM] : Installation of the application has started.
* [10/29/2013 3:33:02 PM] : Processing of application manifest has successfully completed.
* [10/29/2013 3:33:27 PM] : Request of trust and detection of platform is complete.

ERROR DETAILS
Following errors were detected during this operation.
* [10/29/2013 3:34:45 PM] System.Deployment.Application.InvalidDeploymentException (ManifestLoad)
    - Exception occurred loading manifest from file myAppl.resources.dll: the manifest may not be valid or the file could not be opened. 
    - Source: System.Deployment
    - Stack trace:
        at System.Deployment.Application.Manifest.AssemblyManifest.ManifestLoadExceptionHelper(Exception exception, String filePath)
        at System.Deployment.Application.Manifest.AssemblyManifest.LoadFromInternalManifestFile(String filePath)
        at System.Deployment.Application.Manifest.AssemblyManifest..ctor(String filePath)
        at System.Deployment.Application.DownloadManager.ProcessDownloadedFile(Object sender, DownloadEventArgs e)
        at System.Deployment.Application.FileDownloader.DownloadModifiedEventHandler.Invoke(Object sender, DownloadEventArgs e)
        at System.Deployment.Application.FileDownloader.OnModified()
        at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
        at System.Deployment.Application.SystemNetDownloader.DownloadAllFiles()
        at System.Deployment.Application.FileDownloader.Download(SubscriptionState subState)
        at System.Deployment.Application.DownloadManager.DownloadDependencies(SubscriptionState subState, AssemblyManifest deployManifest, AssemblyManifest appManifest, Uri sourceUriBase, String targetDirectory, String group, IDownloadNotification notification, DownloadOptions options)
        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)
    --- Inner Exception ---
    System.Deployment.Application.DeploymentException (InvalidManifest)
    - Cannot load internal manifest from component file.
    - Source: 
    - Stack trace:


COMPONENT STORE TRANSACTION DETAILS
No transaction information is available.

注意:我尝试将应用程序设置为任何工作CPU并尝试创建应用程序manifest但没有任何变化

任何帮助

提前致谢

4

1 回答 1

0

从您需要签署我们的 ClickOnce 清单的警告看来。这可以在您的项目设置中的“签名”部分下完成。还要确保在部署中包含 resources.dll,确保它包含在 ClickOnce 设置的应用程序文件中。

于 2013-10-30T04:28:23.570 回答