Cannot update Entity data model from database due to TNS error

萝らか妹 提交于 2019-12-25 09:16:04

问题


I'm trying to update my Entity data model from the database. Earlier today, I ran my app just fine and was able to access the database, as I have a tnsnames.ora file that I copied and pasted into my project folder. Then, when i was trying to open my edmx file, I was getting a message along the lines of:

"The ADO.NET provider 'Oracle.ManagedDataAccess.Client' is either not registered in the machine or application config file, or could not be loaded"

I noticed that my machine didn't have ODAC for Visual Studio installed. So I went ahead and did that. Now, I can open my edmx file just fine, but my wizard is failing to connect to the database:

"ORA-12154: TNS:could not resolve the connect identifier specified"

I don't think I've touched my tnsnames.ora file since this morning. What gives?


回答1:


Figured the problem out.

I had to copy the tnsnames.ora file over to where i installed Oracle/client_1/Network/Admin, AND get the sqlnet.ora file in that same location.



来源:https://stackoverflow.com/questions/41709041/cannot-update-entity-data-model-from-database-due-to-tns-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!