安装时单击“一次异常”

时间:2013-10-29 15:04:32

标签: visual-studio-2010 c#-4.0 iis-7 clickonce manifest

我有一个应用程序需要4个先决条件:dotnetfx40ReportViewer以及vbpowerpackswindowsinstaller3_1 publishing之后,我放clickonce } local network上的文件夹,并在application上创建新的IIS,以便从我们的团队使用的服务器进行安装。

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

在安装过程中,如果单击Application Installation corrupted并尝试从安装的OK安装它,则会显示OK错误消息,其中包含2个按钮URL和“详细信息”因为安装了所有先决条件,所以工作正常。

但如果我点击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的应用程序,但没有任何更改

任何帮助

提前致谢

1 个答案:

答案 0 :(得分:0)

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