By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,263 Members | 1,464 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,263 IT Pros & Developers. It's quick & easy.

CS1595 Error

P: n/a
Hi all

I have a C#.NET solution that contains about 10 projects. One of the
projects is a set of user built controls which gets referenced in a
couple of projects. Some of the these projects, that reference this
project which contains the user built controls, are also referenced in
the main application. The main application also references the user
built control library.

However, when compiling the application...I get a CS1595 error saying
that some classes are defined in multiple places.

Does anyone know how to fix this problem?

I have outlined an example of the problem I have encountered below.

Solution contains projects A, B, C, D.

A is a set of user built controls.
B and C reference A as they consume these user controls.
D also references A, and also references some of the dialogs used in B
and C.

Any ideas would be greatly appreciated.

Thanks
Prem

Nov 16 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Are you sure there are no classes with the same name in a single
namespace?

Regards
Senthil

Nov 16 '05 #2

P: n/a
Yes I am sure that there are no classes with the same name in the
namespace.

Thanks
Prem

Nov 16 '05 #3

P: n/a
Prem S <pr*********@hotmail.com> wrote:
I have a C#.NET solution that contains about 10 projects. One of the
projects is a set of user built controls which gets referenced in a
couple of projects. Some of the these projects, that reference this
project which contains the user built controls, are also referenced in
the main application. The main application also references the user
built control library.

However, when compiling the application...I get a CS1595 error saying
that some classes are defined in multiple places.

Does anyone know how to fix this problem?

I have outlined an example of the problem I have encountered below.

Solution contains projects A, B, C, D.

A is a set of user built controls.
B and C reference A as they consume these user controls.
D also references A, and also references some of the dialogs used in B
and C.

Any ideas would be greatly appreciated.


Could you post a short but complete program which demonstrates the
problem?

See http://www.pobox.com/~skeet/csharp/complete.html for details of
what I mean by that.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 16 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.