[Mono-bugs] [Bug 484384] New: Duplicate key in assembly resolving

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Mar 11 12:51:14 EDT 2009


https://bugzilla.novell.com/show_bug.cgi?id=484384


           Summary: Duplicate key in assembly resolving
    Classification: Mono
           Product: Mono: Tools
           Version: SVN
          Platform: Other
        OS/Version: Ubuntu
            Status: NEW
          Severity: Critical
          Priority: P5 - None
         Component: xbuild
        AssignedTo: jankit at novell.com
        ReportedBy: dna at mono-project.de
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.0; de; rv:1.9.0.7)
Gecko/2009021910 Firefox/3.0.7 (.NET CLR 3.5.30729)

I get the following exception while i'm compiling AspSQLProvider with xbuild:

mono at mono-desktop:~/AspSQLProvider/Source$ MONO_OPTIONS=--debug xbuild
PostgreSQLProvider.csproj 
XBuild Engine Version 0.1
Mono, Version 2.5.0.0
Copyright (C) Marek Sieradzki 2005. All rights reserved.

Build started 11.03.2009 17:43:12.
__________________________________________________
Project "/home/mono/AspSQLProvider/Source/PostgreSQLProvider.csproj" (Build
target(s)):

Target PrepareForBuild:
        Configuration: Debug Platform: AnyCPU

Target ResolveAssemblyReferences:
System.Reflection.TargetInvocationException: Exception has been thrown by the
target of an invocation. ---> System.ArgumentException: An element with the
same key already exists in the dictionary.
  at System.Collections.Generic.Dictionary`2[System.Version,System.String].Add
(System.Version key, System.String value) [0x00000] 
  at Microsoft.Build.Tasks.AssemblyResolver.GatherGacAssemblies () [0x000cb] in
/home/mono/mono-source/mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks/AssemblyResolver.cs:99 
  at Microsoft.Build.Tasks.AssemblyResolver..ctor () [0x0001c] in
/home/mono/mono-source/mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks/AssemblyResolver.cs:54 
  at Microsoft.Build.Tasks.ResolveAssemblyReference..ctor () [0x00006] in
/home/mono/mono-source/mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks/ResolveAssemblyReference.cs:72 
  at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke
(object,object[],System.Exception&)
  at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags
invokeAttr, System.Reflection.Binder binder, System.Object[] parameters,
System.Globalization.CultureInfo culture) [0x000a6] in
/home/mono/mono-source/mcs/class/corlib/System.Reflection/MonoMethod.cs:444 
  --- End of inner exception stack trace ---
  at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags
invokeAttr, System.Reflection.Binder binder, System.Object[] parameters,
System.Globalization.CultureInfo culture) [0x000b8] in
/home/mono/mono-source/mcs/class/corlib/System.Reflection/MonoMethod.cs:450 
  at System.Reflection.MonoCMethod.Invoke (BindingFlags invokeAttr,
System.Reflection.Binder binder, System.Object[] parameters,
System.Globalization.CultureInfo culture) [0x00000] in
/home/mono/mono-source/mcs/class/corlib/System.Reflection/MonoMethod.cs:459 
  at System.Reflection.ConstructorInfo.Invoke (System.Object[] parameters)
[0x0000e] in
/home/mono/mono-source/mcs/class/corlib/System.Reflection/ConstructorInfo.cs:77 
  at System.Activator.CreateInstance (System.Type type, Boolean nonPublic)
[0x000b5] in /home/mono/mono-source/mcs/class/corlib/System/Activator.cs:331 
  at System.Activator.CreateInstance (System.Type type) [0x00000] in
/home/mono/mono-source/mcs/class/corlib/System/Activator.cs:213 
  at Microsoft.Build.BuildEngine.BuildTask.InitializeTask () [0x00000] in
/home/mono/mono-source/mcs/class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine/BuildTask.cs:166 
  at Microsoft.Build.BuildEngine.BuildTask.Execute () [0x00017] in
/home/mono/mono-source/mcs/class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine/BuildTask.cs:93 

Build succeeded.
     0 Warning(s)
     1 Error(s)

Time Elapsed 00:00:00.3646750


The AspSQLProvider code is here available:
svn co http://svn.nauck-it.de/aspsqlprovider/trunk AspSQLProvider


Compiling the same project with xbuild throught CruiseControl.NEt gives the
following exception:

[-1238819952:DEBUG] [AspSQLProvider /usr/bin/svn] Ausgecheckt, Revision 114.
[AspSQLProvider:DEBUG] Starting process [xbuild] in working directory
[/home/mono/AspSQLProvider/Source/] with arguments [/nologo
/p:CCNetArtifactDirectory=/home/mono/AspSQLProvider/Logs;CCNetBuildCondition=ForceBuild;CCNetBuildDate=2009-03-11;CCNetBuildTime=17:41:27;CCNetFailureUsers=;CCNetIntegrationStatus=Unknown;CCNetLabel=1;CCNetLastIntegrationStatus=Unknown;CCNetListenerFile=/home/mono/AspSQLProvider/Logs/AspSQLProvider_ListenFile.xml;CCNetModifyingUsers=;CCNetNumericLabel=1;CCNetProject=AspSQLProvider;CCNetProjectUrl=http://build.nauck-it.de/;CCNetRequestSource=IntervalTrigger;CCNetWorkingDirectory=/home/mono/AspSQLProvider/
/noconsolelogger /p:Configuration=Debug /v:diag PostgreSQLProvider.csproj
/l:/home/mono/cc.net/server/ThoughtWorks.CruiseControl.MsBuild.dll;/home/mono/AspSQLProvider/Logs/msbuild-results.xml]
[-1236681840:DEBUG] [AspSQLProvider xbuild] XBuild Engine Version 0.1
[-1236681840:DEBUG] [AspSQLProvider xbuild] Mono, Version 2.5.0.0
[-1236681840:DEBUG] [AspSQLProvider xbuild] Copyright (C) Marek Sieradzki 2005.
All rights reserved.
[-1236681840:DEBUG] [AspSQLProvider xbuild] 
[-1236681840:DEBUG] [AspSQLProvider xbuild] Unhandled Exception:
System.ArgumentNullException: Argument cannot be null.
[-1236681840:DEBUG] [AspSQLProvider xbuild] Parameter name: assemblyRef
[-1236681840:DEBUG] [AspSQLProvider xbuild]   at System.AppDomain.Load
(System.Reflection.AssemblyName assemblyRef, System.Security.Policy.Evidence
assemblySecurity) [0x00000] 
[-1236681840:DEBUG] [AspSQLProvider xbuild]   at (wrapper
remoting-invoke-with-check) System.AppDomain:Load
(System.Reflection.AssemblyName,System.Security.Policy.Evidence)
[-1236681840:DEBUG] [AspSQLProvider xbuild]   at System.AppDomain.Load
(System.Reflection.AssemblyName assemblyRef) [0x00000] 
[-1236681840:DEBUG] [AspSQLProvider xbuild]   at (wrapper
remoting-invoke-with-check) System.AppDomain:Load
(System.Reflection.AssemblyName)
[-1236681840:DEBUG] [AspSQLProvider xbuild]   at
System.Reflection.Assembly.Load (System.Reflection.AssemblyName assemblyRef)
[0x00000] 
[-1236681840:DEBUG] [AspSQLProvider xbuild]   at
Mono.XBuild.CommandLine.MainClass.Execute () [0x00000] 
[AspSQLProvider:INFO] Task execution failed
[AspSQLProvider:INFO] Task output: XBuild Engine Version 0.1
Mono, Version 2.5.0.0
Copyright (C) Marek Sieradzki 2005. All rights reserved.

[AspSQLProvider:INFO] Task error: 
Unhandled Exception: System.ArgumentNullException: Argument cannot be null.
Parameter name: assemblyRef
  at System.AppDomain.Load (System.Reflection.AssemblyName assemblyRef,
System.Security.Policy.Evidence assemblySecurity) [0x00000] 
  at (wrapper remoting-invoke-with-check) System.AppDomain:Load
(System.Reflection.AssemblyName,System.Security.Policy.Evidence)
  at System.AppDomain.Load (System.Reflection.AssemblyName assemblyRef)
[0x00000] 
  at (wrapper remoting-invoke-with-check) System.AppDomain:Load
(System.Reflection.AssemblyName)
  at System.Reflection.Assembly.Load (System.Reflection.AssemblyName
assemblyRef) [0x00000] 
  at Mono.XBuild.CommandLine.MainClass.Execute () [0x00000] 

Reproducible: Always

Steps to Reproduce:
1.
2.
3.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list