RA-12154: TNS:could not resolve service name in Visual Studio 2008 RRS feed

  • Question

  • User-1614995517 posted

    Hi guys, I have a web application developed in Visual Studio 2008, framework 2.0, having oracle database at backend. When I tries to run the applicatoin on Visual Studio I got following error:

    RA-12154: TNS:could not resolve service name

    Initially I thought it's TNS issue, however ; later I deployed  it to IIS and it stat running perfectly. The reason I did this is because this applicatioin was running on another PC perfectly.

    Can some body tell me what am I missing. any help in this regards would be heighly appreaiaty.


    Wednesday, November 2, 2011 8:44 AM


  • User1447854015 posted


    I have had this error mulitple times. The reason for the error for me is the TNS files have different keys, so when I used "Key1" locally it worked but when I uploaded to the server I would need to use "Key2" because the TNS key is different for the same connection. Do you have somthing similar in place?

    Hope it helps!

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, November 3, 2011 1:48 PM