Solved

Compiler Error Message: CS0234  - how to add Reference

Posted on 2004-10-12
3
9,609 Views
Last Modified: 2013-11-15
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 'Odbc' does not exist in the class or namespace 'System.Data' (are you missing an assembly reference?)

Source Error:

Line 1:  <%@ Page Language="C#" autoeventwireup="False" EnableSessionState="False" EnableViewState="False" %>
Line 2:  <%@ import Namespace="System.Data" %>
Line 3:  <%@ import Namespace="System.Data.Odbc" %>
Line 4:  <script runat="server">

Line: 3


i dont know how to add the  " missing an assembly reference"  to the WEB MATRIX.
i need some details answer.
0
Comment
Question by:Viji4u
3 Comments
 
LVL 1

Accepted Solution

by:
ridi786 earned 50 total points
ID: 12305947
Just a guess as im new to web matrix but your code suppose to look something like the one i pasted below

<%@ Page Language="VB" %>
<%@ Register TagPrefix="uc0" TagName="disp_msg" Src="../disp_msg.ascx" %>
<%@ Register TagPrefix="wmx" Namespace="Microsoft.Matrix.Framework.Web.UI" Assembly="Microsoft.Matrix.Framework, Version=0.6.0.0, Culture=neutral, PublicKeyToken=6f763c9966660626" %>

When you are creating your page it asks the language, specify there that the language you want to use is C#, thereafter use the other tabs to type in ur code, and dont worry about the lines i mentioned above.

Hope this helps.
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now