简体   繁体   English

C#.net与Oracle数据库的连接错误

[英]C#.net connection to Oracle database error

I have a C#.net application that I need to connect to an Oracle db. 我有一个C#.net应用程序,需要连接到Oracle数据库。 I built the connection string and datagrid and both show connection and pulling data. 我建立了连接字符串和datagrid,并显示了连接和提取数据。 Problem is when I try to view the page it gives me this error; 问题是当我尝试查看页面时,它给了我这个错误;

ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified 错误[IM002] [Microsoft] [ODBC驱动程序管理器]找不到数据源名称,并且未指定默认驱动程序

I have gone into IIs on my server and set the connection string but still get the error. 我进入服务器上的IIs并设置了连接字符串,但仍然收到错误。 Here is my page code... " ProviderName="<%$ ConnectionStrings:CFO_INTRANET1.ProviderName %>" SelectCommand="SELECT DATE_ENTERED, EMAIL, SUGGESTION FROM CFO_INTRANET.SUGGESTIONS"> My Connection, 这是我的页面代码...“ ProviderName =” <%$ ConnectionStrings:CFO_INTRANET1.ProviderName%>“ SelectCommand =” SELECT DATE_ENTERED,EMAIL,SUGGESTION FROM CFO_INTRANET.SUGGESTIONS“>我的连接,

What am I missing?? 我想念什么?

To setup an ODBC link for a 32bit application you must use: 要为32位应用程序设置ODBC链接,您必须使用:

C:\Windows\SysWOW64\odbcad32.exe

To setup an ODBC link for a 64bit application you must use: 要为64位应用程序设置ODBC链接,您必须使用:

C:\Windows\System32\odbcad32.exe

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM