客户端使用VS2010(.Net4)运行已发布的应用程序时出错

时间:2014-01-12 10:38:14

标签: .net visual-studio-2010 deployment clickonce

客户端在运行已部署的应用程序时遇到错误

主机需要在运行应用程序之前安装.Net 4。这是我的应用程序先决条件页面:

prerequisites configuration snap shot

发布成功,客户希望运行应用程序但结果是: File is moved or corrupt. snapshot

,这是错误日志详细信息文件:

The following properties have been set:
Property: [AdminUser] = true {boolean}
Property: [InstallMode] = SameSite {string}
Property: [ProcessorArchitecture] = AMD64 {string}
Property: [VersionNT] = 6.1.1 {version}
Running checks for package 'Windows Installer 3.1', phase BuildList
The following properties have been set for package 'Windows Installer 3.1':
Running checks for command 'WindowsInstaller3_1\WindowsInstaller-KB893803-v2-x86.exe'
Result of running operator 'VersionGreaterThanOrEqualTo' on property 'VersionMsi' and value '3.1': true
Result of checks for command 'WindowsInstaller3_1\WindowsInstaller-KB893803-v2-x86.exe' is 'Bypass'
'Windows Installer 3.1' RunCheck result: No Install Needed
Running checks for package 'Microsoft .NET Framework 4 (x86 and x64)', phase BuildList
Reading value 'Version' of registry key 'HKLM\Software\Microsoft\NET Framework Setup\NDP\v4\Full'
Unable to read registry value
Not setting value for property 'DotNet40Full_TargetVersion'
The following properties have been set for package 'Microsoft .NET Framework 4 (x86 and x64)':
Running checks for command 'DotNetFX40\dotNetFx40_Full_x86_x64.exe'
Result of running operator 'ValueEqualTo' on property 'InstallMode' and value 'HomeSite': false
Skipping ByPassIf because Property 'DotNet40Full_TargetVersion' was not defined
Result of running operator 'ValueEqualTo' on property 'AdminUser' and value 'false': false
Result of running operator 'VersionLessThan' on property 'VersionNT' and value '5.1.2': false
Result of running operator 'ValueEqualTo' on property 'ProcessorArchitecture' and value 'IA64': false
Result of checks for command 'DotNetFX40\dotNetFx40_Full_x86_x64.exe' is 'Install'
Running checks for command 'DotNetFX40\dotNetFx40_Full_setup.exe'
Result of running operator 'ValueNotEqualTo' on property 'InstallMode' and value 'HomeSite': true
Result of checks for command 'DotNetFX40\dotNetFx40_Full_setup.exe' is 'Bypass'
'Microsoft .NET Framework 4 (x86 and x64)' RunCheck result: Install Needed
Running checks for package 'Microsoft Visual Studio 2010 Report Viewer', phase BuildList
Reading value 'Install' of registry key 'HKLM\Software\Microsoft\DevDiv\VB\Servicing\10.0\ROS'
Read integer value 1
Setting value '1 {int}' for property 'IsViewerInstalled'
The following properties have been set for package 'Microsoft Visual Studio 2010 Report Viewer':
Property: [IsViewerInstalled] = 1 {int}
Running checks for command 'ReportViewer\ReportViewer.exe'
Result of running operator 'ValueExists' on property 'IsViewerInstalled': true
Result of checks for command 'ReportViewer\ReportViewer.exe' is 'Bypass'
'Microsoft Visual Studio 2010 Report Viewer' RunCheck result: No Install Needed
EULA for components 'Microsoft .NET Framework 4 (x86 and x64)' was accepted.
Copying files to temporary directory "C:\Users\ADMINI~1\AppData\Local\Temp\2\VSD1986.tmp\"
Downloading files to "C:\Users\ADMINI~1\AppData\Local\Temp\2\VSD1986.tmp\"
(1/12/2014 11:24:38 AM) Downloading 'DotNetFX40\dotNetFx40_Full_x86_x64.exe' from 'http://10.15.33.176/DotNetFX40/dotNetFx40_Full_x86_x64.exe' to 'C:\Users\ADMINI~1\AppData\Local\Temp\2\VSD1986.tmp\'
Download completed at 1/12/2014 11:24:38 AM
Verifying file integrity of C:\Users\ADMINI~1\AppData\Local\Temp\2\VSD1986.tmp\DotNetFX40\dotNetFx40_Full_x86_x64.exe
Verifying file hash
Error: Setup has detected that the file 'C:\Users\ADMINI~1\AppData\Local\Temp\2\VSD1986.tmp\DotNetFX40\dotNetFx40_Full_x86_x64.exe' has either changed since it was initially published or may be corrupt.

请帮助我!

1 个答案:

答案 0 :(得分:0)

经过4天的谷歌搜索并尝试不同的解决方案 最后我发现因为我的计算机上有VS2010和VS2013,使用vs2010部署使用.net 4.5 SDK,它有不同的 PublicKey ,然后安装无法验证安装文件安装失败。 最后卸载.net 4.5 SDK让我成功了。