[Mono-bugs] [Bug 359773] New: [REGRESSION] FileNotFoundException when trying to load a existent assembly

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Feb 7 18:07:21 EST 2008


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


           Summary: [REGRESSION] FileNotFoundException when trying to load a
                    existent assembly
           Product: Mono: Class Libraries
           Version: SVN
          Platform: i686
        OS/Version: Ubuntu
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: CORLIB
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: dna at informatik.uni-kiel.de
         QAContact: mono-bugs at lists.ximian.com
                CC: mhabersack at novell.com
          Found By: ---


Mono version 1.9 (/trunk/ r95154)

In an ASP.NET 2.0 Application i'm using Activator.CreateInstance() to load a
instance of IDbConnection from Npgsql.

Npgsql exist in Mono's GAC and a own copy of it in my /bin folder.
It works well mos of the time.

But from time to time i get the following exception:

System.ApplicationException: Unable to load assembly 'Npgsql' containing
implementation type 'Npgsql.NpgsqlConnection'. --->
System.IO.FileNotFoundException: Could not load file or assembly 'Npgsql' or
one of its dependencies. The system cannot find the file specified.
File name: 'Npgsql'
  at (wrapper managed-to-native) System.AppDomain:LoadAssembly
(string,System.Security.Policy.Evidence,bool)
  at System.AppDomain.Load (System.String assemblyString,
System.Security.Policy.Evidence assemblySecurity, Boolean refonly) [0x00011] in
/home/dna/mono-svn/mcs/class/corlib/System/AppDomain.cs:603
  at System.AppDomain.Load (System.String assemblyString,
System.Security.Policy.Evidence assemblySecurity) [0x00000] in
/home/dna/mono-svn/mcs/class/corlib/System/AppDomain.cs:595
  at (wrapper remoting-invoke-with-check) System.AppDomain:Load
(string,System.Security.Policy.Evidence)
  at System.Reflection.Assembly.Load (System.String assemblyString,
System.Security.Policy.Evidence assemblySecurity) [0x00000] in
/home/dna/mono-svn/mcs/class/corlib/System.Reflection/Assembly.cs:502
  at System.Activator.CreateInstance (System.String assemblyName, System.String
typeName, Boolean ignoreCase, BindingFlags bindingAttr,
System.Reflection.Binder binder, System.Object[] args,
System.Globalization.CultureInfo culture, System.Object[] activationAttributes,
System.Security.Policy.Evidence securityInfo) [0x00013] in
/home/dna/mono-svn/mcs/class/corlib/System/Activator.cs:146
  at System.Activator.CreateInstance (System.String assemblyName, System.String
typeName, System.Object[] activationAttributes) [0x00017] in
/home/dna/mono-svn/mcs/class/corlib/System/Activator.cs:134
  at System.Activator.CreateInstance (System.String assemblyName, System.String
typeName) [0x00017] in
/home/dna/mono-svn/mcs/class/corlib/System/Activator.cs:126
  at NauckIT.MicroKernel.TypeReference.CreateInstance[IDbConnection] ()
[0x00000] --- End of inner exception stack trace ---

  at NauckIT.MicroKernel.TypeReference.CreateInstance[IDbConnection] ()
[0x00000]
  at NauckIT.MicroKernel.ObjectFactory.CreateInstance[IDbConnection] (Int32 Id)
[0x00000]



I've no idea how to reproduce this.
I've never had this exception with: version 1.2.6 (/trunk/ r92431)


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


More information about the mono-bugs mailing list