The system. Data. oracleclinet connection method prompts a TNS error on an x64-bit machine.

Source: Internet
Author: User

One of the processing methods is:

Connect web. config to a string

<Add name = "Main" connectionstring = "Data Source = me11g; persist Security info = true; user id = WQ; Password = xyha; Unicode = true;" providername = "system. data. oracleclient "/>

 

Modify:

<Add name = "Main" connectionstring = "Data Source = (description = (address_list = (address = (Protocol = TCP) (host = 192.168.1.12) (Port = 1521 ))) (CONNECT_DATA = (SERVICE_NAME = smsvr); persist Security info = true; user id = WQ; Password = xyha; "providername =" system. data. oracleclient "/>

 

However, there is a problem. Some methods may not be universal. The best way is to install an x64 Oracle client. This problem can be solved.

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.