How to gibe assembly reference in a *.aspx file?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: amallik (amallik_at_discussions.microsoft.com)
Date: 09/14/04


Date: Tue, 14 Sep 2004 01:01:01 -0700

Error message CS0234

I can access the Oracle database from C# (*.cs), but when I try to access
the database on the Web from ASP.Net(C#) - *.aspx, I am getting the following
error message:
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 class or namespace 'System.Data' (are you missing an
assembly reference?)
Source Error:
Line 2: EnableSessionState="False" EnableViewState="False" %>
Line 3: <%@ Import Namespace="System.Data" %>
Line 4: <%@ Import Namespace="System.Data.OracleClient" %>
Source File: E:\Inetpub\wwwroot\csharpdotnet\oracleclient.aspx Line: 4

"System.Data.OracleClient.dll" is the so-called data provider located in
"E:\Program
Files\Microsoft.Net\OracleClient.Net\System.Data.OracleClient.dll"
How to give assembly reference in a *.aspx file?



Relevant Pages

  • ASPX pages give Server not found or DNS Error
    ... in my web application gave the error "Cannot find server or DNS Error". ... I was in deep despair contemplating a complete system rebuild as no matter ... All my aspx pages inherit from my own base class and I had ... The error message was ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Compilation error - consuming a web service
    ... >I am encountering a compilation error where I can't find any solution ... The error message is: ... > Projects\BizTalk Server Project2\Web References\Project ...
    (microsoft.public.biztalk.general)
  • ASP.NET C# WriteToFile StreamWriter error: StreamWriter could not be found
    ... I am getting an error message and I have not been able to figure hot ... how to fix it. ... Compilation Error ... Compiler Error Message: CS0246: The type or namespace name ...
    (microsoft.public.dotnet.languages.csharp)
  • Compilation Error (CS0016)
    ... Can anyone help with the following error message I get returned to my ... browser when I try to run my asp.net app, ... has the necessary permissions, tried installing the .net 1.1 service pack, ... Compilation Error ...
    (microsoft.public.dotnet.framework)
  • Compilation error (CS0016)
    ... Can anyone help with the following error message I get returned to my ... browser when I try to run my asp.net app, ... has the necessary permissions, tried installing the .net 1.1 service pack, ... Compilation Error ...
    (microsoft.public.dotnet.framework.aspnet)