473,397 Members | 1,972 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

C# Console App Add Reference

Tim
I have an existing application that has 3 different Projects inside of
it.
The projects are: Administration, DataAccessComponents, and Utilities.

I have added a fourth, a console applications.

Inside of the console app references, I have added a reference to one
of the other projects so that I my make calls to it as shown below:

using Blah.DataAccessComponents;

This is the exact same way that I made a reference to it in the other
projects and it works there. However, when I run the console app from
the command line, I get the following error: error CS0234: The type or
namespace name DataAccessComponents does not exist in the class or
namespace Blah

Anyone know why this would work in the other projects but fail in the
console application?

Thanks

-Tim
Nov 15 '05 #1
1 3512
You are using the "using" statement, but did you add the
DataAccessComponents project to your list of project references? (In the
solution explorer, if you expand the list of references for your project,
does it include a reference to the DataAccessComponents.dll?)

--- Nick
"Tim" <ti********@hotmail.com> wrote in message
news:30**************************@posting.google.c om...
I have an existing application that has 3 different Projects inside of
it.
The projects are: Administration, DataAccessComponents, and Utilities.

I have added a fourth, a console applications.

Inside of the console app references, I have added a reference to one
of the other projects so that I my make calls to it as shown below:

using Blah.DataAccessComponents;

This is the exact same way that I made a reference to it in the other
projects and it works there. However, when I run the console app from
the command line, I get the following error: error CS0234: The type or
namespace name DataAccessComponents does not exist in the class or
namespace Blah

Anyone know why this would work in the other projects but fail in the
console application?

Thanks

-Tim

Nov 15 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Fred Iannon | last post by:
All, I have developed an application that needs to run in one of two modes: (1) IF NO command line parms are provided I would like it to run as a Window form application (i.e. /target:winexe)...
4
by: jabailo | last post by:
This is driving me crazy. I finally got the Remoting sample chat application working almost. When I run the chat client in VS.NET it goes into an endless loop -- that's because I assume that...
1
by: Jack David | last post by:
How would I convert the following console app to a windows service?? using System; using System.IO; using FileProcessor;
2
by: nick | last post by:
I am using C# do write a console program. Can I do the following tasks: 1. Detect if a key on keyboard is pressed? and get the typed ASC II code? 2. Catch and handle the event of the Control-C?...
3
by: Rabbit63 | last post by:
Hi: I want to use the classes of my asp.net application from my a console program. May I do that? Thanks Q.
6
by: JM | last post by:
Hi, I need a function for a character based program (console) that works exactly like the INKEY$() function in (old) QBasic: Read only 1 keystroke and then move on. Console.Read;...
4
by: Mo | last post by:
Hi, I am writing a console application to send a key sequence to an old clunky application on a regular interval using the windows scheduler. I can get it to work if it is a windows form...
3
by: Sheikko | last post by:
Sincerly is a little bit complicated to explain to you what I have in my mind, but I will try: Above all the problem is the type of data that I want to passe between these two applications. The...
0
by: Stephen Thomas | last post by:
Hi there I wonder if any one has encountered this problem or can suggest what is wrong. I am trying the a procedure from the msn site but get the following message: Error 1 The type or...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.