本文介绍了生成错误 - 异常SqlCeManager无法初始化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到此构建错误


 


InternalError:无法初始化SqlCeManager


 


就像这里描述的那样


http://social.msdn.microsoft.com/Forums/en-US/lightswitchgeneral/thread/33adca12-9918-4c83-ba82-1ed0a2f96b32


我只是想做非常基本的(Hello World风格)应用程序。  我在Windows 7上安装了VS2010 SP1和LightSwitch Beta 2,带有SQLExpress和Northwind数据库。


我第一次执行这些步骤时工作正常,该项目仍然有效


1。制作一个新的C#LS项目


2。将数据源添加到本地SQLEXPRESS,从下拉列表中选择Northwind,测试连接:确定


3。选择员工表,设计师显示它


4。选择一个屏幕,连接到员工(任何屏幕都有问题)


5。 Build,get:  异常SqlCeManager无法初始化


如果我再次执行这些确切步骤,则会出现构建错误。


如果我接受工作项目并添加本地数据源,我将开始收到相同的错误


它实际意味着什么 - 我该如何解决?


我肯定在表中有主键,而且第一次使用它时,它运行正常。  如果我制作该项目的副本,它可以正常工作,但如果我尝试制作一个新项目,我会收到此构建错误。


我在工作中做了一个完整的差异和非工作的项目文件夹,并且数据目录中的mdf / ldf文件有所不同,所以我真的不知道区别是什么。


试过,干净的构建,重启VS,停止/启动sqlexpress,重新启动等等。

解决方案

I am getting this build error

InternalError: SqlCeManager could not be initialized

like the one described here

http://social.msdn.microsoft.com/Forums/en-US/lightswitchgeneral/thread/33adca12-9918-4c83-ba82-1ed0a2f96b32

I am just trying to do very basic (Hello World style) applications.  I have VS2010 SP1 and LightSwitch Beta 2 on Windows 7 with SQLExpress and the Northwind database.

The first time I did these steps it worked fine, and that project still works

1. Make a new C# LS project

2. Add a datasource to the local SQLEXPRESS, choose Northwind from the dropdown, test connection: OK

3. Pick Employees table, designer shows it

4. Pick a screen, connect to Employees (any screen has a problem)

5. Build, get:  Exception SqlCeManager Could Not Be Initialized

If I do these exact steps again, I get the build error.

If I take the working project and add a local datasource, I will start getting the same error

What does it actually mean -- how can I troubleshoot it?

I definitely have primary keys in the table, and the first time I did it, it works fine.  If I make a copy of that project, it works fine, but if I try to make a new one, I get this build error.

I did a full diff on a working and non-working project folder, and there are differences in the mdf/ldf files in the data directory, so I don't really know what the difference is.

Tried, clean builds, restarting VS, stop/start sqlexpress, reboots, etc. 

解决方案


这篇关于生成错误 - 异常SqlCeManager无法初始化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-22 20:06
查看更多