Visual studio 2010 安装时单击一次异常
我有一个应用程序需要4个先决条件:Visual studio 2010 安装时单击一次异常,visual-studio-2010,c#-4.0,iis-7,clickonce,manifest,Visual Studio 2010,C# 4.0,Iis 7,Clickonce,Manifest,我有一个应用程序需要4个先决条件:dotnetfx40和ReportViewer和vbpowerpacks和windowsinstaller3\u 1发布后,我将clickonce文件夹放在本地网络上,并在IIS上创建新的应用程序,以便从我们团队使用的服务器上安装它 当我尝试在任何计算机上安装它时,首先它会安装所有先决条件,然后开始安装应用程序 在安装过程中,如果我单击OK并尝试从相同的URL安装它,则会出现错误消息Application installation corrupted,其中包含两
dotnetfx40
和ReportViewer
和vbpowerpacks
和windowsinstaller3\u 1
发布后,我将clickonce
文件夹放在本地网络上
,并在IIS
上创建新的应用程序
,以便从我们团队使用的服务器上安装它
当我尝试在任何计算机上安装它时,首先它会安装所有先决条件,然后开始安装应用程序
在安装过程中,如果我单击OK
并尝试从相同的URL
安装它,则会出现错误消息Application installation corrupted
,其中包含两个按钮OK
和“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
,并尝试在没有清单的情况下创建应用程序,但没有任何更改
有什么帮助吗
“提前感谢”从警告中可以看出,您需要签署我们的ClickOnce清单。这可以在“项目设置”的“签名”部分下完成。另外,请确保在部署中包含resources.dll,并确保它包含在ClickOnce设置的应用程序文件中