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

Home Posts Topics Members FAQ

CS1595 - defined in Multiple places; using definition

jhe
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.a scx, it will work
correctly. Here is the specific error message:

==============
Compilation Error
Description: An error occurred during the compilation of a
resource required to service this request. Please review
the following specific error details and modify your
source code appropriately.

Compiler Error Message: CS1595: '_ASP.HeaderCon trol_ascx'
is defined in multiple places; using definition
from 'C:\WINNT\Micro soft.NET\Framew ork\v1.0.3705\T emporary
ASP.NET Files\root\40a4 82a3\35b5c2ce\9 tawcop3.dll'
=============== ======

Thank you in advance

Jhe
Nov 18 '05 #1
2 4067
The reason for this is you have the assembly in a couple places. If these
two assemblies were built by the same program and in those two places, the
framework cannot determine which one to use because they are both valid and
usable and so it throws the error.

I've had that happen if i have an assembly A being used by assembly B and
Assembly C had its own copy of assembly A. In that case, there were two
valid copies of assembly A floating around. I'm not even sure that this
scenario should result in an error either according to the docs.

As a first start, you can delete all these assemblies every where you find
them on your hard drive, flush iis temporary files, then rebuild that
particular assembly. You should now have only one copy of this assembly. I'm
sure there are other permutations of this problem as well. This is just a
fix that i happened upon. See if it works for you.

--
Regards,
Alvin Bruney
Got tidbits? Get it here...
http://tinyurl.com/3he3b
"jhe" <jh****@yahoo.c a> wrote in message
news:07******** *************** *****@phx.gbl.. .
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.a scx, it will work
correctly. Here is the specific error message:

==============
Compilation Error
Description: An error occurred during the compilation of a
resource required to service this request. Please review
the following specific error details and modify your
source code appropriately.

Compiler Error Message: CS1595: '_ASP.HeaderCon trol_ascx'
is defined in multiple places; using definition
from 'C:\WINNT\Micro soft.NET\Framew ork\v1.0.3705\T emporary
ASP.NET Files\root\40a4 82a3\35b5c2ce\9 tawcop3.dll'
=============== ======

Thank you in advance

Jhe

Nov 18 '05 #2
Is this flushing and deleting a done by something in IIS, a .NET tool
like gacutil or just hunting and deleting with Explorer?

Frank
"Alvin Bruney" <vapor at steaming post office> wrote in message news:<uW******* *******@TK2MSFT NGP10.phx.gbl>. ..

As a first start, you can delete all these assemblies every where you find
them on your hard drive, flush iis temporary files, then rebuild that
particular assembly. You should now have only one copy of this assembly. I'm
sure there are other permutations of this problem as well. This is just a
fix that i happened upon. See if it works for you.

Nov 18 '05 #3

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

Similar topics

3
1525
by: Prem S | last post by:
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...
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...
0
645
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
7703
marktang
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7930
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. ...
0
8138
jinu1996
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7681
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
6290
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
5228
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
3651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1229
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.