I'm a newbie. I've created a datalayer class which I creatively called
sqlAccess and placed in a namespace I just as creatively called
MyDomain.DataAccessLayer. (Well now, I didn't actually use "MyDomain" but
you know how that works.) And now I'm working on the business logic layer.
When I import the namespace, intellisense completes the name for me,
accurately, but then I get the squiggle of death that says, when I mouse
over it, "Namespace or type 'DataAcessLayer' for the Imports
'MyDomain.DataAccessLayer' cannot be found." And, sure enough, it does not
recognize the sqlAccess class/object either. What do I need to do? And if
you say to set up a reference to the dll, how do I do that? Please?
Thank you 9 1301
Right click on references, chose 'add reference'. Browse for you dll, and
add it as a reference.
There is no way for the ide to know about all the dlls you want to reference
in the project, as you could have any number of them anywhere on your
computer. That's why you have to explicitly reference all DLL's you need in
the project.
"Buz Waitz" <bw****@sbcglobal.net> wrote in message
news:OH**************@TK2MSFTNGP09.phx.gbl... I'm a newbie. I've created a datalayer class which I creatively called sqlAccess and placed in a namespace I just as creatively called MyDomain.DataAccessLayer. (Well now, I didn't actually use "MyDomain" but you know how that works.) And now I'm working on the business logic layer. When I import the namespace, intellisense completes the name for me, accurately, but then I get the squiggle of death that says, when I mouse over it, "Namespace or type 'DataAcessLayer' for the Imports 'MyDomain.DataAccessLayer' cannot be found." And, sure enough, it does not recognize the sqlAccess class/object either. What do I need to do? And if you say to set up a reference to the dll, how do I do that? Please?
Thank you
Thank you. The reason I asked how to reference the dll is because when I go
to add the reference, it does not see the project. Do I need to build it
first? If so, I guess I need to comment out all the import statements that
are not working right now. And how is it that intellisense knows about the
namespace? Hmm. At this point, I know I need ot add the reference. How do I
find the dll?
Thank you
"Marina" <so*****@nospam.com> wrote in message
news:u4**************@TK2MSFTNGP09.phx.gbl... Right click on references, chose 'add reference'. Browse for you dll, and add it as a reference.
There is no way for the ide to know about all the dlls you want to
reference in the project, as you could have any number of them anywhere on your computer. That's why you have to explicitly reference all DLL's you need
in the project.
"Buz Waitz" <bw****@sbcglobal.net> wrote in message news:OH**************@TK2MSFTNGP09.phx.gbl... I'm a newbie. I've created a datalayer class which I creatively called sqlAccess and placed in a namespace I just as creatively called MyDomain.DataAccessLayer. (Well now, I didn't actually use "MyDomain"
but you know how that works.) And now I'm working on the business logic
layer. When I import the namespace, intellisense completes the name for me, accurately, but then I get the squiggle of death that says, when I mouse over it, "Namespace or type 'DataAcessLayer' for the Imports 'MyDomain.DataAccessLayer' cannot be found." And, sure enough, it does
not recognize the sqlAccess class/object either. What do I need to do? And
if you say to set up a reference to the dll, how do I do that? Please?
Thank you
Buz,
* "Buz Waitz" <bw****@sbcglobal.net> scripsit: I'm a newbie. I've created a datalayer class which I creatively called sqlAccess and placed in a namespace I just as creatively called MyDomain.DataAccessLayer. (Well now, I didn't actually use "MyDomain" but you know how that works.) And now I'm working on the business logic layer. When I import the namespace, intellisense completes the name for me, accurately, but then I get the squiggle of death that says, when I mouse over it, "Namespace or type 'DataAcessLayer' for the Imports 'MyDomain.DataAccessLayer' cannot be found." And, sure enough, it does not recognize the sqlAccess class/object either. What do I need to do? And if you say to set up a reference to the dll, how do I do that? Please?
I don't understand why AutoComplete works if there is no reference set,
but are you sure the component implementing the layer is referenced from
your project? You can set a reference by selecting the project's
"References" folder in the solution explorer and then choosing the
appropriate command from its context menu.
--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
The DLLs you see there, are those in the GAC (you can look this up if you
don't know what that is).
As I said in the previous post, you need to browse for your DLL. And yes,
if you have not compiled the other project, then no DLL was generated, and
all you have is some VB files, which is just text, and is not executable
code.
"Buz Waitz" <bw****@sbcglobal.net> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl... Thank you. The reason I asked how to reference the dll is because when I
go to add the reference, it does not see the project. Do I need to build it first? If so, I guess I need to comment out all the import statements that are not working right now. And how is it that intellisense knows about the namespace? Hmm. At this point, I know I need ot add the reference. How do
I find the dll?
Thank you
"Marina" <so*****@nospam.com> wrote in message news:u4**************@TK2MSFTNGP09.phx.gbl... Right click on references, chose 'add reference'. Browse for you dll,
and add it as a reference.
There is no way for the ide to know about all the dlls you want to reference in the project, as you could have any number of them anywhere on your computer. That's why you have to explicitly reference all DLL's you need in the project.
"Buz Waitz" <bw****@sbcglobal.net> wrote in message news:OH**************@TK2MSFTNGP09.phx.gbl... I'm a newbie. I've created a datalayer class which I creatively called sqlAccess and placed in a namespace I just as creatively called MyDomain.DataAccessLayer. (Well now, I didn't actually use "MyDomain" but you know how that works.) And now I'm working on the business logic layer. When I import the namespace, intellisense completes the name for me, accurately, but then I get the squiggle of death that says, when I
mouse over it, "Namespace or type 'DataAcessLayer' for the Imports 'MyDomain.DataAccessLayer' cannot be found." And, sure enough, it does not recognize the sqlAccess class/object either. What do I need to do? And if you say to set up a reference to the dll, how do I do that? Please?
Thank you
"Buz Waitz" <bw****@sbcglobal.net> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl... Thank you. The reason I asked how to reference the dll is because when I
go to add the reference, it does not see the project. Do I need to build it first? If so, I guess I need to comment out all the import statements that are not working right now. And how is it that intellisense knows about the namespace? Hmm. At this point, I know I need ot add the reference. How do
I find the dll?
Suppose you have ProjectA and ProjectB. You cannot make ProjectA depend on
ProjectB and ProjectB depend on ProjectA both. You have to choose the main
project, satelite DLL projects and reference DLL projects in main project.
sincerely,
--
Sebastian Zaklada
Skilled Software http://www.skilledsoftware.com
************************************
SQL Source Control 2003 - for
SQL Server Source Safe integration
and custom databases documentation
Hi Buz,
Thanks for posting in the community.
Do you have any concern on this issue?
If so, please post here.
Best regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
Yes, I guess I'm still having trouble. I did try building the solution
which contains both projects. I commented out any references to the data
access namespace in the business logic layer before building. Then,
afterward, I looked to see if I could find the dll and could not.
I really am new to this. I was trying to work with the .NET time tracker
example as my model and in that example, the data access layer name
space is imported into business layer components. What did they need to
do to be able to do that? Because even though intellisense will complet
the import statement for me with the correct namespace specification,
Visual Studio does not recognize it.
Thank you
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Hi Buz,
Thanks for your quickly reply!
Here I write some steps on reference the project in the same solution, you
may follow them to see if this can help you.
In the solution you have two project one is the class library(CLS1), the
other is the Console Application(TestNamespace)
1. Create a new solution and add a new console application project named
TestNamespace.
2. Add a new class library project named Cls1 in the solution above.
3. Write code in the Cls1 as below..( do not include the content in the <>)
<Cls1:Class1.vb>
Namespace MyDomain.DataAccessLayer
Public Class sqlAccess
Public Sub TestClass()
Console.WriteLine("Run from code")
End Sub
End Class
End Namespace
</Cls1:Class1.vb>
4. add reference to the Cls1 by right click on the Reference in the
TestNamespace project,select add reference
5. in the add reference dialog, select Projects, double click on the Cls1
so that it will appear in the selected components.
6.Write the code below in the TestNamespace project as below.( do not
include the content in the <>)
<TestNamespace:Module1.vb>
Imports Cls1.MyDomain.DataAccessLayer
Module Module1
Sub Main()
Dim o As New sqlAccess
o.TestClass()
End Sub
End Module
</TestNamespace:Module1.vb>
7. Press Ctrl+Alt+B to build the solution.
8.Press Ctrl+F5 to run the project.
For detailed information about Namespaces, take a look at the links below.
Visual Basic Language Concepts
Namespaces http://msdn.microsoft.com/library/de...us/vbcn7/html/
vaconNamespaces.asp
Visual Basic Language Concepts
References and the Imports Statement http://msdn.microsoft.com/library/de...us/vbcn7/html/
vaconReferencesImportsStatement.asp
Best regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
Hi Buz,
Thanks for posting in the community.
Did my suggestion help you? If you have any concern on this issue,please
post here.
Best regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: puzzlecracker |
last post by:
after reading some of the post I found out something rather radical to
my previous understanding: that when you do
#include<iostream>
#include<string>
#include<vector>
etc
compiler puts...
|
by: Kai-Uwe Bux |
last post by:
Hi folks,
I observed something that puzzles me. When I do
namespace xxx { using std::swap; }
it appears that xxx::swap and std::swap are not strictly equivalent. In
particular, I think...
|
by: Phill. W |
last post by:
Having changed a VB.Net(2003) DLL project, I'm getting Type
Loading problems in other code that uses my DLL. In my source
code, I have a Namespace Statement something like this:
Namespace...
|
by: Tiraman |
last post by:
Hi,
I Build my own dll with my own namespace name and i would like to put it in
one place but for the project bin folder
so all of the projects will be able to use it .
i tried to put the dll...
|
by: vivekian |
last post by:
Hi,
I am not sure if this is a relevant topic here, anyways,
When using the std namespace is it a good practice to ..
put this right at the beginning
using namespace std ;
|
by: shumaker |
last post by:
I'm confused about the default namespace setting in the project
properties. Help has the following:
"Default namespace
Specifies the base namespace for all files in the project. For example,...
|
by: Axel Dahmen |
last post by:
Hi,
I've got a question on namespaces. After reading
http://www.w3.org/TR/xml-names11 I still don't understand how namespaces are
applied to attributes - particularly in regard to how processing...
|
by: cj |
last post by:
What does the line
<System.Web.Services.WebService(Namespace:="http://tempuri.org/")_
do in the example below?
Imports System.Web.Services
Imports System.Web.Services.Protocols
Imports...
|
by: huohaodian |
last post by:
I have a webservice class MyService.asmx.cs with:
namespace XMLWS
{
public class Poster : System.Web.Services.WebService
|
by: tshad |
last post by:
Using VS 2008, I have a project that uses the dll from another project.
The Namespace is MyFunctions, with a class of DbObject. The beginning of
the code is:
***************************...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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,...
|
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...
|
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...
| |