This is a migrated thread and some comments may be shown as answers.

Could not load file or assembly nunit.framework

1 Answer 179 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
cayates
Top achievements
Rank 1
cayates asked on 25 Nov 2008, 02:10 PM
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


1 Answer, 1 is accepted

Sort by
0
Jan Blessenohl
Telerik team
answered on 25 Nov 2008, 03:29 PM
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.
Tags
General Discussions
Asked by
cayates
Top achievements
Rank 1
Answers by
Jan Blessenohl
Telerik team
Share this question
or