![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
DotNet
文章平均质量分 79
熊坚强
这个作者很懒,什么都没留下…
展开
-
解决异常Unable to determine the provider name for connection of type SqlCeConnection的方法之一
最近开发一个带有local data的WPF项目时遇到一个异常:Unable to determine the provider name for connection of type 'System.Data.SqlServerCe.SqlCeConnection'。开发环境是:在VS2010 sp1下使用Entity Framework 4.1(Code-First) + Sql Comp原创 2012-07-16 14:01:06 · 12084 阅读 · 0 评论 -
调用Application.Quit()方法时报"This operation cannot be performed in this event handler."错误的一种解决方法
前几天有个同事问我一个问题,就是如何使用子线程打开PPTX文件。开始时我并没有觉得这是个什么大问题。因为我觉得这个主要的难点在于注意线程上下文的切换上。不过开始做个Demo后感觉有点困惑了,主要集中在Application.Quit()方法上。因为需求里希望打开PPT文件进行播放幻灯片,当幻灯片结束时需要关闭PPT文件。这个需求很合理,因为我们的程序其实就是个打开幻灯片的外壳,如果幻灯片结束后原创 2013-08-10 17:29:51 · 6146 阅读 · 0 评论