[英]Client could not run .NET app, has right version..advice please
I have created and deployed simple DB app and sent it to my client (the whole directory that Publish generates). 我已经创建并部署了简单的数据库应用程序,并将其发送到我的客户端(发布生成的整个目录)。 On my PC it is OK but he gets messages like " sqlceme35.dll" is missing (SQL Ce). 在我的PC上可以,但是他收到类似“ sqlceme35.dll”的消息(SQL Ce)。 He does have 3.5 version of .NET. 他确实具有3.5版的.NET。 In the publish options, prerequisities, there is SQL CE and .NET 3.5 SP1 checked. 在发布选项(先决条件)中,检查了SQL CE和.NET 3.5 SP1。 Please could you advice me? 你能给我建议吗?
UPDATE: Now I can see there is a problem with path to local DB, is it correct to have its Build action to "content"? 更新:现在我可以看到本地数据库的路径存在问题,将其Build操作设置为“内容”是否正确? Thank you! 谢谢!
If you copy 'sqlceme35.dll' to your bin folder it should work. 如果将“ sqlceme35.dll”复制到bin文件夹中,它将正常工作。
See this blog for more information: http://blogs.msdn.com/sqlservercompact/archive/2007/10/26/can-t-find-p-invoke-dll-sqlcemenn-dll.aspx 有关更多信息,请参见此博客: http : //blogs.msdn.com/sqlservercompact/archive/2007/10/26/can-t-find-p-invoke-dll-sqlcemenn-dll.aspx
If you aren't using CE ME, remove the prerequisite and reference? 如果您不使用CE ME,则删除先决条件和参考吗? Shouldn't be needed unless it's a mobile app. 除非它是移动应用程序,否则不需要。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.