Go Back   Velocity Reviews > Newsgroups > ASP Net
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

ASP Net - CS1595 - defined in Multiple places; using definition

 
Thread Tools Search this Thread
Old 01-15-2004, 12:47 AM   #1
Default CS1595 - defined in Multiple places; using definition


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


jhe
  Reply With Quote
Old 01-15-2004, 05:22 PM   #2
Alvin Bruney
 
Posts: n/a
Default Re: CS1595 - defined in Multiple places; using definition
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" <> wrote in message
news:071401c3db01$241286b0$...
> 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





Alvin Bruney
  Reply With Quote
Old 02-09-2004, 03:12 PM   #3
frank p
 
Posts: n/a
Default Re: CS1595 - defined in Multiple places; using definition
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:<>...
>
> 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.
>



frank p
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
High Definition and the future of viewing. Allan DVD Video 3 03-09-2005 12:56 AM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46