473,387 Members | 3,810 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,387 software developers and data experts.

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.ascx, 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.HeaderControl_ascx'
is defined in multiple places; using definition
from 'C:\WINNT\Microsoft.NET\Framework\v1.0.3705\Tempor ary
ASP.NET Files\root\40a482a3\35b5c2ce\9tawcop3.dll'
=====================

Thank you in advance

Jhe
Nov 18 '05 #1
2 4051
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.ca> 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.ascx, 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.HeaderControl_ascx'
is defined in multiple places; using definition
from 'C:\WINNT\Microsoft.NET\Framework\v1.0.3705\Tempor ary
ASP.NET Files\root\40a482a3\35b5c2ce\9tawcop3.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**************@TK2MSFTNGP10.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
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,...
4
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...
5
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...
0
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...
1
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...
9
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...
1
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...
2
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: ...
5
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
0
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,...
0
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...

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.