Could not load file or assembly nunit.framework

2 posts, 0 answers
  1. cayates
    cayates avatar
    71 posts
    Member since:
    Feb 2007

    Posted 25 Nov 2008 Link to this post

    I am trying to call Telerik.OpenAccess.Database.Get( "database" ) and I am getting the following exception:

    Could not load file or assembly 'nunit.framework, Version=2.2.0.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77' or one of its dependencies. The system cannot find the file specified.


    [FileNotFoundException: Could not load file or assembly 'nunit.framework, Version=2.2.0.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77' or one of its dependencies. The system cannot find the file specified.]
    System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0
    System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +54
    System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +211
    System.Reflection.Assembly.Load(AssemblyName assemblyRef) +25
    Telerik.OpenAccess.SPI.Util.AssemblyHelper.Load(AssemblyName name) +55
    Telerik.OpenAccess.Config.References.ReferencesManager.FillReferences(Assembly[] rootAssemblies, AssemblyProvider asmProvider, ReferenceData[] refs) +1187
    Telerik.OpenAccess.Config.References.ReferencesManager.GetReferences(Assembly[] rootAssemblies, XmlElement openAccessNode, AssemblyProvider asmProvider) +48
    Telerik.OpenAccess.Config.ConfigManager.Init() +364
    Telerik.OpenAccess.Config.ConfigManager.GetConnectionData(String apiUser, String apiPassword, ArrayList mappingXmlNodes, ArrayList mappingSources, Boolean partial) +33
    Telerik.OpenAccess.Config.ConfigManager.GetConnectionData(String apiUser, String apiPassword, Boolean partial) +97
    Telerik.OpenAccess.Config.ConfigManager.GetConnectionData(String apiUser, String apiPassword) +36
    Telerik.OpenAccess.Config.ConfigManager.MapConnectionId2Url() +32
    Telerik.OpenAccess.DBRegistry.GetDatabase(String urlOrConnectionId, XmlElement configOverride, Assembly[] entryAssemblies) +244
    Telerik.OpenAccess.DBRegistry.GetDatabase(String urlOrConnectionId, XmlElement configOverride) +43
    Telerik.OpenAccess.Database.Get(String connectionId) +135

    I assume that open access is mistakenly thinking it's in some sort of debug mode where it is trying to perform unit tests when it obviously shouldn't be.  How do I fix this?  Thank you


  2. Jan Blessenohl
    Admin
    Jan Blessenohl avatar
    707 posts

    Posted 25 Nov 2008 Link to this post

    Hello cayates,

    During database get we are following all <reference> entries in the config files. I think there is a wrong entry to an assembly without persistent classes that references the nunit framework. Can you pls. check those entries.

    Kind regards,
    Jan Blessenohl
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. DevCraft banner
Back to Top