473,569 Members | 2,481 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CS1595 Error

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
3 1524
Are you sure there are no classes with the same name in a single
namespace?

Regards
Senthil

Nov 16 '05 #2
Yes I am sure that there are no classes with the same name in the
namespace.

Thanks
Prem

Nov 16 '05 #3
Prem S <pr*********@ho tmail.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.co m>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 16 '05 #4

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

Similar topics

1
1485
by: René Meinecke | last post by:
hi there, i have created a webservice which is running well on the developer computer. for this i also created a windows installer setup which also works well on the developer computer, but if i try to install it on another machine (framework installed) there comes the error cs1595. i have changed a compiler entry in machine.config for...
4
1738
by: Igor | last post by:
I am getting this error while I am trying to run my web server app. Compiler Error Message: CS1595: 'LiveWeb.Global' is defined in multiple places; using definition from 'c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322 \Temporary ASP.NET Files\liveweb\ab66a079\709df2e7 \assembly\dl2\90eff9dc\ebf496c0_bf98c301\ALKLiveWeb.DLL' Does anyone...
5
2091
by: Kim Nørby Andersen | last post by:
Hello there I am lost. i receive the output in the bottom, from a site that runs excellently on our development server, but dies on the customer. We have had a first version running at the customer, did some changes, recompiled, zipped and sent it back to them, but then it screwed up. As a part of the debugging process, the ASP.NET has...
2
4067
by: jhe | last post by:
I have a user control HeaderControl which was shared by multiple Asp.Net Pages (.aspx), sometimes when I make some changes to our website and restart iis, it will have the CS1595 error, but when I change something (for example, add a space) in the HeaderControl.ascx, it will work correctly. Here is the specific error message: ...
1
1763
by: Jouni Heikniemi | last post by:
Hi, This has been asked before, in <http://groups.google.fi/groups? selm=ureiu7b04kv839%40corp.supernews.com> for example; however, I haven't found any real answers, so I'll post this with some new data. I've encountered strange behavior with .ascx control files. If I have two controls with the same name (obviously residing in different...
9
2284
by: JTrigger | last post by:
When I compile my project using the IDE on a development machine it works just fine. When I compile it on the server using csc.exe, I get the following error when I try to bring it up in the web browser. What is the issue? Thanks, Jim Server Error in '/psnRequest' Application....
1
3354
by: abh1508 | last post by:
Following a release of code the following problem occurs on certain asp ..net pages. This is not a problem on other testing/demo environments. IIS seems to be creating certain files twice in the temporary internet files directory. Any advice or suggestions appreciated. Server Error in '/ContactCentre/Global' Application....
2
1617
by: CtrlAltDel | last post by:
I have an ASP.NET application that runs just fine on our servers (Win2003, in dev/staging/prod) when the debug attribute of <system.web><compilation /></system.webis set to true, thusly: <system.web> <compilation defaultLanguage="c#" debug="true" /> </system.web> However, set the attribute to false, so that pages are built as Release...
5
1642
by: brentbackup | last post by:
I know I'm some years behind, but I just have the go-ahead to start developing on .Net 2.0. While the development process goes ahead, I'm to maintain the .Net 1.1 stuff on the same machine. I downloaded and installed the 2.0 framework. As I understand it, 1.1 and 2.0 are supposed to play nice with each other. However, now when I go about...
0
7926
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7678
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7982
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6286
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5514
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5222
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3656
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3644
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1226
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.