问题
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