MicrosoftSqlServerCe.Client not in GAC

落爺英雄遲暮 提交于 2019-12-12 01:10:07

问题


I have successfully built a desktop application and published it with Visual Studio. The prerequisites are .Net Framework 40 and SQL Server CE. When I run the installer on a machine with none of these, it runs and installs both prerequisites well. But when it comes to installing the application itself, I get a pop up titled

SYSTEM UPDATE REQUIRED
Unable to install or run the application. The application requires that assembly MicrosoftSqlServerCe.Client version 4.0.0.0 be installed in the Global Assembly Cache (GAC) first

I thought the SQL Server Compact was supposed to take care of that automatically. What should I do please help. I don't want to have users of the application do complicated stuff in order to get the app to work. Help please


回答1:


You have a reference somewhere to Microsoft.SqlServerCe.Client - that should be changed to System.Data.SqlServerCe (the Microsoft.SqlServerCe.Client dll is a design time only component)



来源:https://stackoverflow.com/questions/17300537/microsoftsqlserverce-client-not-in-gac

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!