K
Ken Allen
OK, this one has me completely at a loss. Please note that the capitalized
names in the following are for reference only and do not reflect the casing
used for the actual namespaces or types.
I have one assembly that is common to the client and server component, let
us call it COMMON. This is the name of the namespace as well. Inside this
namespace I have defined a public enum named MY_ENUM.
Inside this same assembly I defined another namespace that can be used by
both client and server components, called COMMON.WIN32 -- as the name
implies, this namespace contains some basic WIN32 interface stuff that can
be called from both client and server code.
For the server components I have another assembly that defines another
namespace, COMMON.WIN32.SERVER, that contains some more WIN32 API stuff and
wrappers that are only used in server-side components.
Now, the problem is that the client code contains a "using COMMON" and is
able to access MY_ENUM.ENTRY1 without problem, bu the code in the server
assembly (inside a COMMON.WIN32.SERVER class) generates an error on a
reference to MY_ENUM.ENTRY1 indicating that I may be missing a namespace
reference -- that file also contains a "using COMMON" as well as a "USING
COMMON.WIN32" statement.
Strangely enough, the MY_ENUM entry also does not appear in intellisense
when typing.
Does anyone have any idea why I cannot use the enumeration from the COMMON
namespace when writing code for a deeper namespace? I saw nothing that
indicated why this should be wrong.
-Ken
names in the following are for reference only and do not reflect the casing
used for the actual namespaces or types.
I have one assembly that is common to the client and server component, let
us call it COMMON. This is the name of the namespace as well. Inside this
namespace I have defined a public enum named MY_ENUM.
Inside this same assembly I defined another namespace that can be used by
both client and server components, called COMMON.WIN32 -- as the name
implies, this namespace contains some basic WIN32 interface stuff that can
be called from both client and server code.
For the server components I have another assembly that defines another
namespace, COMMON.WIN32.SERVER, that contains some more WIN32 API stuff and
wrappers that are only used in server-side components.
Now, the problem is that the client code contains a "using COMMON" and is
able to access MY_ENUM.ENTRY1 without problem, bu the code in the server
assembly (inside a COMMON.WIN32.SERVER class) generates an error on a
reference to MY_ENUM.ENTRY1 indicating that I may be missing a namespace
reference -- that file also contains a "using COMMON" as well as a "USING
COMMON.WIN32" statement.
Strangely enough, the MY_ENUM entry also does not appear in intellisense
when typing.
Does anyone have any idea why I cannot use the enumeration from the COMMON
namespace when writing code for a deeper namespace? I saw nothing that
indicated why this should be wrong.
-Ken