Solved

Compiler Error Message: CS0234  - how to add Reference

Posted on 2004-10-12
3
9,642 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

Containers & Docker to Create a Powerful Team

Containers are an incredibly powerful technology that can provide you and/or your engineering team with huge productivity gains. Using containers, you can deploy, back up, replicate, and move apps and their dependencies quickly and easily.

Question has a verified solution.

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

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…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

717 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