Connection to Oracle fails with invalid connection string

Posts   
 
    
Posts: 2
Joined: 18-Jan-2018
# Posted on: 18-Jan-2018 14:17:07   

Hi, I'm having problems connecting to an Oracle DB.

VS 2017 two projects. Web App for Angular/MVC created on Net 4.61. Oracle LLBLGen DB project Net 4.61. I am trying to configure using code not the config file.

        
RuntimeConfiguration.AddConnectionString(
                "ConnectionString.Oracle (ODP.NET)",
                "data source=server:1891/instance;userid=aaaaa;password=bbbb;persist security info=false;"
                );

            var rdwDB = new RDWDatabase.Linq.LinqMetaData();

            var items = rdwDB.Object.ToList();

When I run this it errors with: System.InvalidOperationException: 'OracleConnection.ConnectionString is invalid'

The exact same LLBLGen project with the same connection string works when called from a Net 4.61 Console App using app.config. What am I missing?

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 18-Jan-2018 18:56:51   

Which LLBLGen Pro version are you using?

This is fixed in v.5.3.2

Posts: 2
Joined: 18-Jan-2018
# Posted on: 19-Jan-2018 03:26:05   

Was on LLBLGen 5.3.1. Upgraded everything to 5.3.2. Now working OK simple_smile

Thanx for your help!