C# 使用ClickOnce的本地ReportViwer 2012部署

C# 使用ClickOnce的本地ReportViwer 2012部署,c#,winforms,visual-studio-2012,reportviewer,sqlclr,C#,Winforms,Visual Studio 2012,Reportviewer,Sqlclr,我有一个C#.Net WinForm应用程序,它使用很少的报表,数据集是本地的,由报表显示 因此,我正在使用ClickOnce部署此应用程序 在我设置的前提条件中 报表查看器2012 .Net 4 sqlclrx64 sqlclrx86 这在本地计算机上运行良好,但当客户端尝试安装时 安装程序抛出一个错误 我深入研究,找到了安装程序,正在尝试安装 ***Microsoft System CLR Types for SQL Server Denali CTP3 x64 Microsoft S

我有一个C#.Net WinForm应用程序,它使用很少的报表,数据集是本地的,由报表显示

因此,我正在使用ClickOnce部署此应用程序

在我设置的前提条件中

报表查看器2012

.Net 4

sqlclrx64

sqlclrx86

这在本地计算机上运行良好,但当客户端尝试安装时

安装程序抛出一个错误

我深入研究,找到了安装程序,正在尝试安装

***Microsoft System CLR Types for SQL Server Denali CTP3 x64  

Microsoft System CLR Types for SQL Server Denali CTP3 x86.***
安装程序安装了这些,然后尝试安装Reportviewer,Reportviewer会抛出一个错误,即它没有安装CLR包

所以当我去微软网站手动下载并安装

然后我可以将程序安装为:

***Microsoft System CLR Types for SQL Server x86

Microsoft System CLR Types for SQL Server x64*** 
此安装包含非测试版或最终版本,如果我尝试安装report viewer 2012,则会。 它安装时没有任何错误

问题是,单击安装程序安装旧版本的SqlCLr类型并安装新的Reportviwer。

我在我的开发机器上尝试了一切,每个组件都更新了,所有东西都是最新的,报表查看器,clr类型sql Server express数据工具,所有东西都更新了,都是最新的。但还是有这个问题

今天我在新虚拟机上尝试了Vs 2012 Express,并尝试部署它,但遇到了同样的问题, 引导安装程序,安装旧版本的CLR类型和Clickonce安装程序会抛出错误。

这个问题的任何解决方案

已经一个多月了,我被困在这个问题上

谢谢

The following properties have been set:
Property: [AdminUser] = true {boolean}
Property: [InstallMode] = HomeSite {string}
Property: [NTProductType] = 3 {int}
Property: [ProcessorArchitecture] = AMD64 {string}
Property: [VersionNT] = 6.2.0 {version}
Running checks for package 'Windows Installer 4.5', phase BuildList
Looking up path for special folder 'WindowsFolder'
Running check with folder 'C:\Windows\System32' and file 'msi.dll'
Attempting to find file 'C:\Windows\System32\msi.dll'
File version is '5.0.9200.16384'
Setting value '5.0.9200.16384 {version}' for property 'VersionMsiDll'
The following properties have been set for package 'Windows Installer 4.5':
Property: [VersionMsiDll] = 5.0.9200.16384 {version}
Running checks for command 'WindowsInstaller4_5\WindowsXP-KB942288-v3-x86.exe'
Result of running operator 'VersionGreaterThanOrEqualTo' on property 'VersionMsi' and value '4.5': true
Result of checks for command 'WindowsInstaller4_5\WindowsXP-KB942288-v3-x86.exe' is 'Bypass'
Running checks for command 'WindowsInstaller4_5\WindowsXP-KB958655-v2-x86-ENU.exe'
Result of running operator 'VersionGreaterThanOrEqualTo' on property 'VersionMsiDll' and value '4.5.6001.22299': true
Result of checks for command 'WindowsInstaller4_5\WindowsXP-KB958655-v2-x86-ENU.exe' is 'Bypass'
Running checks for command 'WindowsInstaller4_5\WindowsServer2003-KB942288-v4-x86.exe'
Result of running operator 'VersionGreaterThanOrEqualTo' on property 'VersionMsi' and value '4.5': true
Result of checks for command 'WindowsInstaller4_5\WindowsServer2003-KB942288-v4-x86.exe' is 'Bypass'
Running checks for command 'WindowsInstaller4_5\WindowsServer2003-KB958655-v2-x86-ENU.exe'
Result of running operator 'VersionGreaterThanOrEqualTo' on property 'VersionMsiDll' and value '4.5.6001.22299': true
Result of checks for command 'WindowsInstaller4_5\WindowsServer2003-KB958655-v2-x86-ENU.exe' is 'Bypass'
Running checks for command 'WindowsInstaller4_5\WindowsServer2003-KB942288-v4-x64.exe'
Result of running operator 'VersionGreaterThanOrEqualTo' on property 'VersionMsi' and value '4.5': true
Result of checks for command 'WindowsInstaller4_5\WindowsServer2003-KB942288-v4-x64.exe' is 'Bypass'
Running checks for command 'WindowsInstaller4_5\WindowsServer2003.WindowsXP-KB958655-v2-x64-ENU.exe'
Result of running operator 'VersionGreaterThanOrEqualTo' on property 'VersionMsiDll' and value '4.5.6001.22299': true
Result of checks for command 'WindowsInstaller4_5\WindowsServer2003.WindowsXP-KB958655-v2-x64-ENU.exe' is 'Bypass'
Running checks for command 'WindowsInstaller4_5\Windows6.0-KB958655-v2-x86.MSU'
Result of running operator 'VersionGreaterThanOrEqualTo' on property 'VersionMsiDll' and value '4.5.6001.22308': true
Result of checks for command 'WindowsInstaller4_5\Windows6.0-KB958655-v2-x86.MSU' is 'Bypass'
Running checks for command 'WindowsInstaller4_5\Windows6.0-KB958655-v2-x64.MSU'
Result of running operator 'VersionGreaterThanOrEqualTo' on property 'VersionMsiDll' and value '4.5.6001.22308': true
Result of checks for command 'WindowsInstaller4_5\Windows6.0-KB958655-v2-x64.MSU' is 'Bypass'
'Windows Installer 4.5' RunCheck result: No Install Needed
Running checks for package 'Microsoft .NET Framework 4 Client Profile (x86 and x64) and Update for .NET Framework 4 (KB2468871)', phase BuildList
Reading value 'Version' of registry key 'HKLM\Software\Microsoft\NET Framework Setup\NDP\v4\Client'
Read string value '4.5.50709'
Setting value '4.5.50709 {string}' for property 'DotNet40Client_TargetVersion'
Reading value 'ThisVersionInstalled' of registry key 'HKLM\Software\Microsoft\Updates\Microsoft .NET Framework 4 Client Profile\KB2468871'
Read string value 'Y'
Setting value 'Y {string}' for property 'KB2468871Client_Installed'
The following properties have been set for package 'Microsoft .NET Framework 4 Client Profile (x86 and x64) and Update for .NET Framework 4 (KB2468871)':
Property: [DotNet40Client_TargetVersion] = 4.5.50709 {string}
Property: [KB2468871Client_Installed] = Y {string}
Running checks for command 'DotNetFX40ClientKB2468871\dotNetFx40_Client_x86_x64.exe'
Result of running operator 'ValueEqualTo' on property 'InstallMode' and value 'HomeSite': true
Result of checks for command 'DotNetFX40ClientKB2468871\dotNetFx40_Client_x86_x64.exe' is 'Bypass'
Running checks for command 'DotNetFX40ClientKB2468871\dotNetFx40_Client_setup.exe'
Result of running operator 'ValueNotEqualTo' on property 'InstallMode' and value 'HomeSite': false
Result of running operator 'VersionGreaterThanOrEqualTo' on property 'DotNet40Client_TargetVersion' and value '4.0.30129': true
Result of checks for command 'DotNetFX40ClientKB2468871\dotNetFx40_Client_setup.exe' is 'Bypass'
Running checks for command 'DotNetFX40ClientKB2468871\NDP40-KB2468871-v2-x86.exe'
Result of running operator 'ValueNotEqualTo' on property 'ProcessorArchitecture' and value 'Intel': true
Result of checks for command 'DotNetFX40ClientKB2468871\NDP40-KB2468871-v2-x86.exe' is 'Bypass'
Running checks for command 'DotNetFX40ClientKB2468871\NDP40-KB2468871-v2-x64.exe'
Result of running operator 'ValueNotEqualTo' on property 'ProcessorArchitecture' and value 'amd64': false
Result of running operator 'ValueEqualTo' on property 'KB2468871Client_Installed' and value 'Y': true
Result of checks for command 'DotNetFX40ClientKB2468871\NDP40-KB2468871-v2-x64.exe' is 'Bypass'
'Microsoft .NET Framework 4 Client Profile (x86 and x64) and Update for .NET Framework 4 (KB2468871)' RunCheck result: No Install Needed
Running checks for package 'Microsoft® System CLR Types for SQL Server® 2012 (x86)', phase BuildList
Reading value 'Install' of registry key 'HKLM\SOFTWARE\Microsoft\Microsoft SQL Server 2012 RC0 Redist\SQL Server System CLR Types\CurrentVersion'
Unable to read registry value
Not setting value for property 'IsViewerInstalled'
The following properties have been set for package 'Microsoft® System CLR Types for SQL Server® 2012 (x86)':
Running checks for command 'SqlClrTypes_x86\SQLSysClrTypes.msi'
Result of running operator 'ValueExists' on property 'IsViewerInstalled': false
Result of running operator 'ValueEqualTo' on property 'AdminUser' and value 'false': false
Result of checks for command 'SqlClrTypes_x86\SQLSysClrTypes.msi' is 'Install'
'Microsoft® System CLR Types for SQL Server® 2012 (x86)' RunCheck result: Install Needed
Running checks for package 'Microsoft® System CLR Types for SQL Server® 2012 (x64)', phase BuildList
Reading value 'Install' of registry key 'HKLM\SOFTWARE\Microsoft\Microsoft SQL Server 2012 RC0 Redist\SQL Server System CLR Types\CurrentVersion'
Unable to read registry value
Not setting value for property 'IsViewerInstalled'
The following properties have been set for package 'Microsoft® System CLR Types for SQL Server® 2012 (x64)':
Running checks for command 'SqlClrTypes_x64\SQLSysClrTypes.msi'
Result of running operator 'ValueExists' on property 'IsViewerInstalled': false
Result of running operator 'ValueEqualTo' on property 'AdminUser' and value 'false': false
Result of checks for command 'SqlClrTypes_x64\SQLSysClrTypes.msi' is 'Install'
'Microsoft® System CLR Types for SQL Server® 2012 (x64)' RunCheck result: Install Needed
Running checks for package 'Microsoft Report Viewer 2012 Runtime', phase BuildList
Reading value 'Version' of registry key 'HKLM\Software\Microsoft\Microsoft SQL Server 2012 Redist\Microsoft Report Viewer 2012 Runtime'
Unable to read registry value
Not setting value for property 'IsViewerInstalled'
The following properties have been set for package 'Microsoft Report Viewer 2012 Runtime':
Running checks for command 'ReportViewer\ReportViewer.msi'
Skipping ByPassIf because Property 'IsViewerInstalled' was not defined
Result of running operator 'ValueEqualTo' on property 'AdminUser' and value 'false': false
Result of checks for command 'ReportViewer\ReportViewer.msi' is 'Install'
'Microsoft Report Viewer 2012 Runtime' RunCheck result: Install Needed
EULA for components 'Microsoft® System CLR Types for SQL Server® 2012 (x86), Microsoft® System CLR Types for SQL Server® 2012 (x64)' was accepted.
EULA for components 'Microsoft Report Viewer 2012 Runtime' was accepted.
Copying files to temporary directory "C:\Users\ADMINI~1\AppData\Local\Temp\2\VSD215A.tmp\"
Downloading files to "C:\Users\ADMINI~1\AppData\Local\Temp\2\VSD215A.tmp\"
(8/4/2013 12:41:57 AM) Downloading 'SqlClrTypes_x86\SQLSysClrTypes.msi' from 'http://go.microsoft.com/fwlink/?LinkID=221257' to 'C:\Users\ADMINI~1\AppData\Local\Temp\2\VSD215A.tmp\'
Download completed at 8/4/2013 12:41:58 AM
Verifying file integrity of C:\Users\ADMINI~1\AppData\Local\Temp\2\VSD215A.tmp\SqlClrTypes_x86\SQLSysClrTypes.msi
WinVerifyTrust returned 0
File trusted
(8/4/2013 12:41:58 AM) Downloading 'SqlClrTypes_x64\SQLSysClrTypes.msi' from 'http://go.microsoft.com/fwlink/?LinkID=221258' to 'C:\Users\ADMINI~1\AppData\Local\Temp\2\VSD215A.tmp\'
Download completed at 8/4/2013 12:41:59 AM
Verifying file integrity of C:\Users\ADMINI~1\AppData\Local\Temp\2\VSD215A.tmp\SqlClrTypes_x64\SQLSysClrTypes.msi
WinVerifyTrust returned 0
File trusted
(8/4/2013 12:41:59 AM) Downloading 'ReportViewer\ReportViewer.msi' from 'http://go.microsoft.com/fwlink/?LinkID=217022' to 'C:\Users\ADMINI~1\AppData\Local\Temp\2\VSD215A.tmp\'
Download completed at 8/4/2013 12:42:01 AM
Verifying file integrity of C:\Users\ADMINI~1\AppData\Local\Temp\2\VSD215A.tmp\ReportViewer\ReportViewer.msi
WinVerifyTrust returned 0
File trusted
Error: Setup has detected that the file 'C:\Users\ADMINI~1\AppData\Local\Temp\2\VSD215A.tmp\ReportViewer\ReportViewer.msi' has changed since it was initially published.
(8/4/2013 12:42:09 AM) Downloading 'ReportViewer\ReportViewer.msi' from 'http://go.microsoft.com/fwlink/?LinkID=217022' to 'C:\Users\ADMINI~1\AppData\Local\Temp\2\VSD215A.tmp\'
Download completed at 8/4/2013 12:42:09 AM
Verifying file integrity of C:\Users\ADMINI~1\AppData\Local\Temp\2\VSD215A.tmp\ReportViewer\ReportViewer.msi
WinVerifyTrust returned 0
File trusted
Error: Setup has detected that the file 'C:\Users\ADMINI~1\AppData\Local\Temp\2\VSD215A.tmp\ReportViewer\ReportViewer.msi' has changed since it was initially published.
(8/4/2013 12:42:11 AM) Downloading 'ReportViewer\ReportViewer.msi' from 'http://go.microsoft.com/fwlink/?LinkID=217022' to 'C:\Users\ADMINI~1\AppData\Local\Temp\2\VSD215A.tmp\'
Download completed at 8/4/2013 12:42:12 AM
Verifying file integrity of C:\Users\ADMINI~1\AppData\Local\Temp\2\VSD215A.tmp\ReportViewer\ReportViewer.msi
WinVerifyTrust returned 0
File trusted
Error: Setup has detected that the file 'C:\Users\ADMINI~1\AppData\Local\Temp\2\VSD215A.tmp\ReportViewer\ReportViewer.msi' has changed since it was initially published.

尝试卸载SQL Server的任何非最终版本,然后再次访问“必备”页面并仔细检查组件。

请发布Clickonce安装失败的日志。您好,我发布了该文件。