Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 84751

ODP.NET driver when using WinForms and Report Designer

$
0
0

Hi,

The whole idea of "ClickOnce" is that all the dependencies get packaged up, and so I dont need to ensure all my clients have Oracle ODAC installed.  I got it working using ODAC and am now able to deploy reports to customers who do not have Oracfe installed.

 

The trick was to ensure the Oracle.ManagedDataAccess.dll was part of the CLickOnce assembly as an "Include", but then some additions to AppConfig.

 

<system.data>
<DbProviderFactories>
<remove invariant="Oracle.ManagedDataAccess.Client" />
<!-- If any should be in the machine.config -->
<add name="Oracle Data Provider for .NET" invariant="Oracle.ManagedDataAccess.Client" description="Oracle Data Provider for .NET" type="Oracle.ManagedDataAccess.Client.OracleClientFactory, Oracle.ManagedDataAccess, Version=4.121.2.0, Culture=neutral" />
</DbProviderFactories>
</system.data>
<connectionStrings>
<clear />
<add name="ConnectionStringAriel" providerName="Oracle.ManagedDataAccess.Client"
connectionString="Data Source=myserver.mycompany.net:1524/DARIEL;Persist Security Info=True;User ID=myname;Password=mypassword;Connection Timeout=60;"/>
</connectionStrings>

 

So I disagree that you cannot create winforms solutions you can deploy to clients without Oracle installed.

Regards

 

Stephen


Viewing all articles
Browse latest Browse all 84751

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>