在客户端PC上运行c#应用程序时出现错误

本文关键字:错误 应用程序 客户端 PC 运行 | 更新日期: 2023-09-27 18:07:10

我正试图在客户端PC上运行我的c#应用程序,但安装了即时客户端。在我的应用程序中,我正在访问数据库以检索要显示的一些记录。当我尝试在我的开发PC上运行应用程序时,它工作正常,但在客户端PC上它显示我以下错误:在配置中找不到存储提供程序或无效

我的app. conf包含以下内容:

<configuration>
  <connectionStrings>
    <add name="StorageEntities" connectionString="metadata=res://*/StorageModel.csdl|res://*/StorageModel.ssdl|res://*/StorageModel.msl;provider=Oracle.DataAccess.Client;provider connection string=&quot;DATA SOURCE=myData;PASSWORD=myPass;PERSIST SECURITY INFO=True;USER ID=myUser&quot;" providerName="System.Data.EntityClient" />
  </connectionStrings>
  <startup>
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" />
  </startup>
</configuration>

在客户端PC上运行c#应用程序时出现错误

客户端机器上是否安装了EntityFramework

安装Microsoft Process Monitor工具(它是免费的),配置它来捕获问题发生时计算机上应用程序的所有文件访问事件,然后查看该工具中的文件访问错误。

这里是Process Monitor http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx的链接