I have one VS.NET 2003 solution that contains 3 projects. Two of the
projects are ASP.NET projects each with their own .dll. The third project
is a class library with its own .dll. We'll refer to them as project1.dll,
project2.dll and myclass.dll.
Both project1 and project2 have references to myclass.dll. The build order
builds myclass.dll first. When I copy all three .dll into our BIN folder of
our site at the same time, the site bombs with the error message below. If
I only copy project1.dll and myclass.dll, and view that FIRST, and then add
project2.dll and test the site again IT WORKS!!!!!
WHAT THE HECK IS GOING ON? The verbose error message is below. We
thoroughly appreciate any suggestions for how to deal with this.
Mark Field
field027@umn.ed u
********** ERROR MESSAGE BELOW *************
Server Error in '/' Application.
----------------------------------------------------------------------------
----
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: 'mynamespace.Gl obal' is defined in multiple
places; using definition from
'c:\WINDOWS\Mic rosoft.NET\Fram ework\v1.1.4322 \Temporary ASP.NET
Files\root\2588 b39b\2d9c51f0\a ssembly\dl2\084 7439d\04924d3e_ 5794c301\IrPriv a
te.DLL'
*** Mark: Note that the temporary file mentioned abovechanges in
location slightly each time we replace all three .dll files. I can't just
delete the file. ***
Source Error:
Line 25:
Line 26:
Line 27: public class Global_asax : mynamespace.Glo bal {
Line 28:
Line 29: private static bool __initialized = false;
Source File: c:\WINDOWS\Micr osoft.NET\Frame work\v1.1.4322\ Temporary ASP.NET
Files\root\2588 b39b\2d9c51f0\i c_nyuyb.0.cs Line: 27
Show Detailed Compiler Output:
c:\windows\syst em32\inetsrv>
"c:\windows\mic rosoft.net\fram ework\v1.1.4322 \csc.exe" /t:library
/utf8output
/R:"c:\windows\a ssembly\gac\sys tem.xml\1.0.500 0.0__b77a5c5619 34e089\system.x
ml.dll" /R:"c:\windows\m icrosoft.net\fr amework\v1.1.43 22\mscorlib.dll "
/R:"c:\windows\m icrosoft.net\fr amework\v1.1.43 22\temporary asp.net
files\root\2588 b39b\2d9c51f0\a ssembly\dl2\084 7439d\04924d3e_ 5794c301\irpriv a
te.dll"
/R:"c:\windows\a ssembly\gac\sys tem.web.service s\1.0.5000.0__b 03f5f7f11d50a3a
\system.web.ser vices.dll"
/R:"c:\windows\a ssembly\gac\sys tem\1.0.5000.0_ _b77a5c561934e0 89\system.dll"
/R:"c:\windows\a ssembly\gac\sys tem.web\1.0.500 0.0__b03f5f7f11 d50a3a\system.w
eb.dll" /R:"c:\windows\m icrosoft.net\fr amework\v1.1.43 22\temporary asp.net
files\root\2588 b39b\2d9c51f0\a ssembly\dl2\e7c 5492d\246d1639_ 5794c301\ir.dll "
/R:"c:\windows\a ssembly\gac\sys tem.drawing\1.0 .5000.0__b03f5f 7f11d50a3a\syst
em.drawing.dll" /R:"c:\windows\m icrosoft.net\fr amework\v1.1.43 22\temporary
asp.net
files\root\2588 b39b\2d9c51f0\a ssembly\dl2\372 7d280\44ee7c31_ 5794c301\mailin g
list.dll"
/R:"c:\windows\a ssembly\gac\sys tem.web.mobile\ 1.0.5000.0__b03 f5f7f11d50a3a\s
ystem.web.mobil e.dll"
/R:"c:\windows\a ssembly\gac\sys tem.data\1.0.50 00.0__b77a5c561 934e089\system.
data.dll"
/R:"c:\windows\a ssembly\gac\sys tem.enterprises ervices\1.0.500 0.0__b03f5f7f11
d50a3a\system.e nterpriseservic es.dll"
/out:"C:\WINDOWS \Microsoft.NET\ Framework\v1.1. 4322\Temporary ASP.NET
Files\root\2588 b39b\2d9c51f0\i c_nyuyb.dll" /debug- /optimize+ /warnaserror
/w:1 "C:\WINDOWS\Mic rosoft.NET\Fram ework\v1.1.4322 \Temporary ASP.NET
Files\root\2588 b39b\2d9c51f0\i c_nyuyb.0.cs"
Microsoft (R) Visual C# .NET Compiler version 7.10.3052.4
for Microsoft (R) .NET Framework version 1.1.4322
Copyright (C) Microsoft Corporation 2001-2002. All rights reserved.
c:\WINDOWS\Micr osoft.NET\Frame work\v1.1.4322\ Temporary ASP.NET
Files\root\2588 b39b\2d9c51f0\i c_nyuyb.0.cs(27 ,32): error CS1595:
'mynamespace.Gl obal' is defined in multiple places; using definition from
'c:\WINDOWS\Mic rosoft.NET\Fram ework\v1.1.4322 \Temporary ASP.NET
Files\root\2588 b39b\2d9c51f0\a ssembly\dl2\084 7439d\04924d3e_ 5794c301\IrPriv a
te.DLL'
Show Complete Compilation Source:
Line 1:
//--------------------------------------------------------------------------
----
Line 2: // <autogenerate d>
Line 3: // This code was generated by a tool.
Line 4: // Runtime Version: 1.1.4322.573
Line 5: //
Line 6: // Changes to this file may cause incorrect behavior and will
be lost if
Line 7: // the code is regenerated.
Line 8: // </autogenerated>
Line 9:
//--------------------------------------------------------------------------
----
Line 10:
Line 11: namespace ASP {
Line 12: using System;
Line 13: using System.Collecti ons;
Line 14: using System.Collecti ons.Specialized ;
Line 15: using System.Configur ation;
Line 16: using System.Text;
Line 17: using System.Text.Reg ularExpressions ;
Line 18: using System.Web;
Line 19: using System.Web.Cach ing;
Line 20: using System.Web.Sess ionState;
Line 21: using System.Web.Secu rity;
Line 22: using System.Web.UI;
Line 23: using System.Web.UI.W ebControls;
Line 24: using System.Web.UI.H tmlControls;
Line 25:
Line 26:
Line 27: public class Global_asax : mynamespace.Glo bal {
Line 28:
Line 29: private static bool __initialized = false;
Line 30:
Line 31: public Global_asax() {
Line 32: if ((ASP.Global_as ax.__initialize d == false)) {
Line 33: ASP.Global_asax .__initialized = true;
Line 34: }
Line 35: }
Line 36: }
Line 37: }
Line 38:
----------------------------------------------------------------------------
----
Version Information: Microsoft .NET Framework Version:1.1.432 2.573; ASP.NET
Version:1.1.432 2.573
projects are ASP.NET projects each with their own .dll. The third project
is a class library with its own .dll. We'll refer to them as project1.dll,
project2.dll and myclass.dll.
Both project1 and project2 have references to myclass.dll. The build order
builds myclass.dll first. When I copy all three .dll into our BIN folder of
our site at the same time, the site bombs with the error message below. If
I only copy project1.dll and myclass.dll, and view that FIRST, and then add
project2.dll and test the site again IT WORKS!!!!!
WHAT THE HECK IS GOING ON? The verbose error message is below. We
thoroughly appreciate any suggestions for how to deal with this.
Mark Field
field027@umn.ed u
********** ERROR MESSAGE BELOW *************
Server Error in '/' Application.
----------------------------------------------------------------------------
----
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: 'mynamespace.Gl obal' is defined in multiple
places; using definition from
'c:\WINDOWS\Mic rosoft.NET\Fram ework\v1.1.4322 \Temporary ASP.NET
Files\root\2588 b39b\2d9c51f0\a ssembly\dl2\084 7439d\04924d3e_ 5794c301\IrPriv a
te.DLL'
*** Mark: Note that the temporary file mentioned abovechanges in
location slightly each time we replace all three .dll files. I can't just
delete the file. ***
Source Error:
Line 25:
Line 26:
Line 27: public class Global_asax : mynamespace.Glo bal {
Line 28:
Line 29: private static bool __initialized = false;
Source File: c:\WINDOWS\Micr osoft.NET\Frame work\v1.1.4322\ Temporary ASP.NET
Files\root\2588 b39b\2d9c51f0\i c_nyuyb.0.cs Line: 27
Show Detailed Compiler Output:
c:\windows\syst em32\inetsrv>
"c:\windows\mic rosoft.net\fram ework\v1.1.4322 \csc.exe" /t:library
/utf8output
/R:"c:\windows\a ssembly\gac\sys tem.xml\1.0.500 0.0__b77a5c5619 34e089\system.x
ml.dll" /R:"c:\windows\m icrosoft.net\fr amework\v1.1.43 22\mscorlib.dll "
/R:"c:\windows\m icrosoft.net\fr amework\v1.1.43 22\temporary asp.net
files\root\2588 b39b\2d9c51f0\a ssembly\dl2\084 7439d\04924d3e_ 5794c301\irpriv a
te.dll"
/R:"c:\windows\a ssembly\gac\sys tem.web.service s\1.0.5000.0__b 03f5f7f11d50a3a
\system.web.ser vices.dll"
/R:"c:\windows\a ssembly\gac\sys tem\1.0.5000.0_ _b77a5c561934e0 89\system.dll"
/R:"c:\windows\a ssembly\gac\sys tem.web\1.0.500 0.0__b03f5f7f11 d50a3a\system.w
eb.dll" /R:"c:\windows\m icrosoft.net\fr amework\v1.1.43 22\temporary asp.net
files\root\2588 b39b\2d9c51f0\a ssembly\dl2\e7c 5492d\246d1639_ 5794c301\ir.dll "
/R:"c:\windows\a ssembly\gac\sys tem.drawing\1.0 .5000.0__b03f5f 7f11d50a3a\syst
em.drawing.dll" /R:"c:\windows\m icrosoft.net\fr amework\v1.1.43 22\temporary
asp.net
files\root\2588 b39b\2d9c51f0\a ssembly\dl2\372 7d280\44ee7c31_ 5794c301\mailin g
list.dll"
/R:"c:\windows\a ssembly\gac\sys tem.web.mobile\ 1.0.5000.0__b03 f5f7f11d50a3a\s
ystem.web.mobil e.dll"
/R:"c:\windows\a ssembly\gac\sys tem.data\1.0.50 00.0__b77a5c561 934e089\system.
data.dll"
/R:"c:\windows\a ssembly\gac\sys tem.enterprises ervices\1.0.500 0.0__b03f5f7f11
d50a3a\system.e nterpriseservic es.dll"
/out:"C:\WINDOWS \Microsoft.NET\ Framework\v1.1. 4322\Temporary ASP.NET
Files\root\2588 b39b\2d9c51f0\i c_nyuyb.dll" /debug- /optimize+ /warnaserror
/w:1 "C:\WINDOWS\Mic rosoft.NET\Fram ework\v1.1.4322 \Temporary ASP.NET
Files\root\2588 b39b\2d9c51f0\i c_nyuyb.0.cs"
Microsoft (R) Visual C# .NET Compiler version 7.10.3052.4
for Microsoft (R) .NET Framework version 1.1.4322
Copyright (C) Microsoft Corporation 2001-2002. All rights reserved.
c:\WINDOWS\Micr osoft.NET\Frame work\v1.1.4322\ Temporary ASP.NET
Files\root\2588 b39b\2d9c51f0\i c_nyuyb.0.cs(27 ,32): error CS1595:
'mynamespace.Gl obal' is defined in multiple places; using definition from
'c:\WINDOWS\Mic rosoft.NET\Fram ework\v1.1.4322 \Temporary ASP.NET
Files\root\2588 b39b\2d9c51f0\a ssembly\dl2\084 7439d\04924d3e_ 5794c301\IrPriv a
te.DLL'
Show Complete Compilation Source:
Line 1:
//--------------------------------------------------------------------------
----
Line 2: // <autogenerate d>
Line 3: // This code was generated by a tool.
Line 4: // Runtime Version: 1.1.4322.573
Line 5: //
Line 6: // Changes to this file may cause incorrect behavior and will
be lost if
Line 7: // the code is regenerated.
Line 8: // </autogenerated>
Line 9:
//--------------------------------------------------------------------------
----
Line 10:
Line 11: namespace ASP {
Line 12: using System;
Line 13: using System.Collecti ons;
Line 14: using System.Collecti ons.Specialized ;
Line 15: using System.Configur ation;
Line 16: using System.Text;
Line 17: using System.Text.Reg ularExpressions ;
Line 18: using System.Web;
Line 19: using System.Web.Cach ing;
Line 20: using System.Web.Sess ionState;
Line 21: using System.Web.Secu rity;
Line 22: using System.Web.UI;
Line 23: using System.Web.UI.W ebControls;
Line 24: using System.Web.UI.H tmlControls;
Line 25:
Line 26:
Line 27: public class Global_asax : mynamespace.Glo bal {
Line 28:
Line 29: private static bool __initialized = false;
Line 30:
Line 31: public Global_asax() {
Line 32: if ((ASP.Global_as ax.__initialize d == false)) {
Line 33: ASP.Global_asax .__initialized = true;
Line 34: }
Line 35: }
Line 36: }
Line 37: }
Line 38:
----------------------------------------------------------------------------
----
Version Information: Microsoft .NET Framework Version:1.1.432 2.573; ASP.NET
Version:1.1.432 2.573
Comment