Lightswitch v1桌面应用程序不适用于64位客户端 [英] Lightswitch v1 Desktop Application doesn't work on 64bit client

查看:120
本文介绍了Lightswitch v1桌面应用程序不适用于64位客户端的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Visual Studio 2010 Professional上制作了Lightswitch v1(2011)桌面应用程序。我的操作系统是32位Windows 7 Professional。该应用程序使用SQL Server身份验证连接到SQL Server 2005数据库。
在运行64位Windows的客户端上,我的应用程序无法加载数据。 (它显示了可怕的red-X,每个使用Lightswitch的人都太熟悉了。)



我能够


machine.config文件位于:




  • Windows XP – C:\WINNT\Microsoft.NET\Framework\v4.0.30319\Config

  • Windows 7 – C:\windows\Microsoft.NET\Framework\ v4.0.30319\Config



损坏的Machine.config文件如下所示(带有2个'DbProviderFactories'e ntries):



可以看到'DbProviderFactories'的标签:



要解决此问题,需要删除空标签,这应该可以解决问题


因此,显然,在Windows 7 64位上安装JDE-破坏了LightSwitch。谁会想到的?


I have made a Lightswitch v1 (2011) Desktop application on Visual Studio 2010 Professional. My OS is 32 bit Windows 7 Professional. The application connects to an SQL Server 2005 database, using SQL Server Authentication. On clients running 64 bit Windows, my application is unable to load data. (It shows the dreaded red-X, that everyone using Lightswitch is all too familiar with).

I was able to enable tracing and get a detailed error message, but still don't know what to do about it.

Error message:

Schema specified is not valid. Errors: 
ApplicationData.ssdl(2,273) : error 0175: The specified store provider cannot be found in the configuration, or is not valid. 

Can anyone please help me to get my application running on 64 bit PCs?

解决方案

The following post helped me solve this:

http://thinksimpleshirin.wordpress.com/2012/01/17/the-specified-store-provider-cannot-be-found-in-the-configuration-or-is-not-valid-error/

The machine.config file is located at:

  • Windows xp – C:\WINNT\Microsoft.NET\Framework\v4.0.30319\Config
  • Windows 7 – C:\windows\Microsoft.NET\Framework\v4.0.30319\Config

The corrupted Machine.config file looks as following (with 2 ‘DbProviderFactories’ entries):

As it can be seeing there are to tags for ‘DbProviderFactories’:

To resolve this issue, the empty tag needs to be removed and this should solve the problem

So, apparently, installing JDE on Windows 7 64 bit - breaks LightSwitch. Who would've thought?

这篇关于Lightswitch v1桌面应用程序不适用于64位客户端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆