Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > ADO.NET
|
ADO.NET For discussion about ADO.NET.  Topics such as question regarding the System.Data namespace are appropriate.  Questions specific to a particular application should be posted in a forum specific to the application .
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ADO.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 12th, 2004, 12:59 PM
Registered User
 
Join Date: Jul 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default ADO.NET Problem

I copied the following code segment from '.NET framework SDK Documentation' to get some details from the database. It works when I compiled it in the command prompt. But it doesn't when I execute the command Ctrl+F5 in Dev Environment; it generates the following error message.
===========================
C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\Syste m.Data.dll Referenced class 'System.Data.OleDb.OleDbCommand' has base class or interface 'System.ComponentModel.Component' defined in an assembly that is not referenced. You must add a reference to assembly 'System'.
===========================
Help me!
 
Old July 15th, 2004, 01:58 AM
Registered User
 
Join Date: May 2004
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Because i have NET 1.1 i say next

Assembly is module make in NET is DLL or EXE file

If use ctrl+f5 app run in other thread
If use f5 app run in thread Visual NET

in project you add referense to NET System*.dll (* - any symbol)
from Folder C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322
is folder default NET install (see folder)

but NET app in run is search System*.dll in GAC
folder by default is C:\WINDOWS\assembly\GAC
(gac - is global assembly (dll) cache - dll is used signed key)
to make key use command sn -k key.snk

To up speed load net app you need install all system*.dll
from C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322
to GAC use command gacutil /if system*.dll

if any quashion send to e-mail [email protected]

i am used NET 1.1 and Ado.net and Sql Server and Crystal
and Any Visual Component to NET to make any application by NET
Best Regard's













Similar Threads
Thread Thread Starter Forum Replies Last Post
ADO.Net Problem akhilesh_g ASP.NET 2.0 Professional 2 December 18th, 2007 05:33 AM
Ado.net Problem... NitinJoshi General .NET 2 January 10th, 2005 04:49 AM
how to deal with this problem related with ADO.NET zouky ADO.NET 2 October 8th, 2004 04:30 AM
'like' problem with asp.net/ ado badgolfer Access ASP 2 September 16th, 2004 01:50 PM
ADO.NET Problem dfb78 Classic ASP Databases 1 June 5th, 2003 05:01 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.