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

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

问题描述

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

我能够

<块引用>

machine.config 文件位于:

  • Windows xp – C:WINNTMicrosoft.NETFrameworkv4.0.30319Config
  • Windows 7 – C:windowsMicrosoft.NETFrameworkv4.0.30319Config

损坏的 Machine.config 文件如下所示(包含 2 个DbProviderFactories"条目):

正如它所看到的,有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:WINNTMicrosoft.NETFrameworkv4.0.30319Config
  • Windows 7 – C:windowsMicrosoft.NETFrameworkv4.0.30319Config

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天全站免登陆