Solved

Compiler Error Message: CS0234  - how to add Reference

Posted on 2004-10-12
3
9,624 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Need help Creating PowerShell Script 5 66
IDE for Python 5 72
how to check mis-spellings in a select SQL 2 38
ModalPopup  question 22 38
A basic question.. “What is the Garbage Collector?” The usual answer given back: “Garbage collector is a background thread run by the CLR for freeing up the memory space used by the objects which are no longer used by the program.” I wondered …
It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

733 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