Solved

Compiler Error Message: CS0234  - how to add Reference

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

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

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

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

839 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