Skip to Main Content

ODP.NET

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ODP.NET Managed driver doesnot resolve datasource in app.config file correctly

AGanaJun 13 2016 — edited Jun 24 2016

Hallo all,

I have a problem with ODP.NET managed driver. I have a simple VS2015 Solution with ODP.NET managed driver. In app.config i have given an user defined alias name which is not present in tnsnames.ora. I have renamed all my tnsnames.ora files so that the framework should not find them. It should only use my datasource in my app.config. But when i run this i get the oracle error message TNS Name cannot be resolved. I checked in process monitor, the application has tried to open the tnsnames.ora files in network/admin but it cannot read them (as i have renamed them, files don't exist). I tried the same solution from my colleague's machine and it works fine for her. We  have checked the process monitor in her machine and it says,

12:01:13,5976214    FindLastState.vshost.exe    9172    QueryOpen   .....\FindLastState\bin\Debug\tnsnames.ora    NAME NOT FOUND   

12:01:13,5977021    FindLastState.vshost.exe    9172    CreateFile    ......\product\11.2.0\client_1\Network\Admin\tnsnames.ora    NAME NOT FOUND    Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a

12:01:13,5978072    FindLastState.vshost.exe    9172    CreateFile    C:\Program Files (x86)\Oracle Developer Tools for VS2015\network\admin\tnsnames.ora    NAME NOT FOUND    Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a

I get the same entries in process monitor but it doesnot work. Can anyone help me in this?

Thanks in advance,

AGana

This post has been answered by Mark Williams on Jun 21 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 22 2016
Added on Jun 13 2016
6 comments
2,173 views