473,320 Members | 1,863 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,320 software developers and data experts.

local namespace & IDE error

I'm wondering if anyone has come across this strange behavior in the VS 2005
IDE.

I have several classes in my App_Code directory, organized in folders and
namespace declarations. Some of these classes need to reference other
classes in their procedures. So, simply enough, I include "Imports"
statements so I don't have to use the fully qualified names everywhere in my
code.

The problem I'm encountering is that VS gives me the "Namespace or type
specified in the Imports '...' doesn't contain any public member or cannot
be found. Make sure the namespace or the type is defined and contains at
least one public member. Make sure the imported element doesn't use any
aliases."

This only happens in some of the classes, for some of my "Imports"
statements, not all. Very weird. I can't make out any consistency.
Jan 2 '07 #1
1 1019
I ran into this in a VS 2005 Windows application. I resolved it by adding the
application name to the Imports statement, like this:

Imports AppName.SharedCodeClass
"Random" wrote:
I'm wondering if anyone has come across this strange behavior in the VS 2005
IDE.

I have several classes in my App_Code directory, organized in folders and
namespace declarations. Some of these classes need to reference other
classes in their procedures. So, simply enough, I include "Imports"
statements so I don't have to use the fully qualified names everywhere in my
code.

The problem I'm encountering is that VS gives me the "Namespace or type
specified in the Imports '...' doesn't contain any public member or cannot
be found. Make sure the namespace or the type is defined and contains at
least one public member. Make sure the imported element doesn't use any
aliases."

This only happens in some of the classes, for some of my "Imports"
statements, not all. Very weird. I can't make out any consistency.
Jan 5 '07 #2

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

Similar topics

0
by: C. M. Sperberg-McQueen | last post by:
wooks (wookiz@hotmail.com) wrote: > <?xml version='1.0'?> > <userlogin xmlns="urn:faster:userlogin" > xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'> > <login>mick</login> > ...
0
by: mjcsfo | last post by:
I can't seem to find a reference nor any helpful threads on this topic. I've gotten the following error in two circumstances: 1. A complex type has nested within it another complex type, in the...
2
by: Jiri Netolicky | last post by:
Hi and happy new year to all. I have a problem with including external entities with namespace. I have this master xml wrapper file: <?xml version="1.0" ?> <!DOCTYPE log4j:eventSet...
4
by: Mike | last post by:
Hi ! I have some strange problem and I would like to know if it is a bug or not : In my projects, in 2 different .cpp files, I use the same name to define a local structure: file1.cpp : ...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.