.net连接oracle的问题
来源:百度知道 编辑:UC知道 时间:2024/06/02 01:36:49
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0234: The type or namespace name 'OracleClient' does not exist in the namespace 'System.Data' (are you missing an assembly reference?)
Source Error:
Line 10: using System.Web.UI.HtmlControls;
Line 11: using System.Data.SqlClient;
Line 12: using System.Data.OracleClient;
为什么我IIS已经是asp.net2.0还会出现这个问题?
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0234: The type or namespace name 'OracleClient' does not exist in the namespace 'System.Data' (are you missing an assembly reference?)
Source Error:
Line 10: using System.Web.UI.HtmlControls;
Line 11: using System.Data.SqlClient;
Line 12: using System.Data.OracleClient;
为什么我IIS已经是asp.net2.0还会出现这个问题?
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433
是不是没有引用 System.Data.OracleClient
不理解
应该是没有引用 System.Data.OracleClient
你应该添加引用 system.data.oracleclient程序集,.net框架里除了默认的包含一些命名空间外,其他的需要你添加命名空间所在的程序集才能使用。