我创建了c#应用程序的设置,但是在安装之后它向我显示错误“无法加载对应于版本8080的ADO.NET提供程序的SQL Server Compact的本机组件。安装正确版本的SQL Server Compact。有关更多详细信息,请参阅知识库文章974247.“
答案 0 :(得分:1)
您的应用程序看起来像是使用SQL Server Compact,但您尚未将其与您的应用程序一起部署。
您只需将其安装在客户端计算机上即可。
如果你问如何创建一个包含应用程序和SQL Server Compact的安装文件,那么你有两个选择:
Traditional Microsoft Windows Installer (Microsoft setup technology) - Users need administrative credentials to install the application. - SQL Server Compact Edition will be serviced by Microsoft Update. - Can use ClickOnce deployment. -or- Private file–based deployment (deploying the SQL Server Compact Edition DLLs as part of the project) - Users do not need administrative credentials to install the application. - SQL Server Compact Edition will not be serviced by Microsoft Update. - Can also use ClickOnce deployment.
http://msdn.microsoft.com/en-us/library/aa983326%28v=vs.80%29.aspx