[Mono-list] Could not load file or assembly or one of its dependencies.

vijay_bandi vijayreddy.bandi at hotmail.com
Sun Aug 28 23:40:05 UTC 2016


 I have recently started working on moving nancy rest api from windows
box(IIS) to ubuntu(apache2).

 I have copied the libraries that are build on windows box and moved them to
ubuntu.

  The application is built on .net framework v4.5 and my Mono JIT compiler
version is 4.4.2.

 Currently I am getting below error. Thanks in advance for any help on this
issue. 

System.IO.FileNotFoundException

Could not load file or assembly or one of its dependencies.
Description: HTTP 500.Error processing request. Non-web exception.
Exception stack trace:
at (wrapper managed-to-native)
System.MonoCustomAttrs:GetCustomAttributesDataInternal
(System.Reflection.ICustomAttributeProvider)
  at System.MonoCustomAttrs.GetCustomAttributesData
(ICustomAttributeProvider obj) 0x40dfe930 + 0x00023 in filename unknown:0 
  at System.Reflection.CustomAttributeData.GetCustomAttributes
(System.Reflection.MemberInfo target) 0x40e02330 + 0x00014 in filename
unknow:0 
  at Mono.CSharp.MetadataImporter.ImportTypes (System.Type[] types,
Mono.CSharp.Namespace targetNamespace, Boolean importExtensionTypes)
0x40e00350 + 0x001ff in filename unknown 
  at Mono.CSharp.ReflectionImporter.ImportAssembly
(System.Reflection.Assembly assembly, Mono.CSharp.RootNamespace
targetNamespace) 0x40dfe180 + 0x0009f in filename unknown 
  at Microsoft.CSharp.RuntimeBinder.DynamicContext.Create () 0x40df6de0 +
0x00337 in filename unknown 
  at Microsoft.CSharp.RuntimeBinder.CSharpGetIndexBinder.FallbackGetIndex
(System.Dynamic.DynamicMetaObject target, System.Dynamic.DynamicMetaObject[]
indexes, System.Dynamic.DynamicMetaObject errorSuggestion) 0x40df68e0 +
0x00073& in filename unknown:0 
  at System.Dynamic.GetIndexBinder.FallbackGetIndex
(System.Dynamic.DynamicMetaObject target, System.Dynamic.DynamicMetaObject[]
indexes) 0x40df68b0 + 0x00020& in filename unknown 
  at System.Dynamic.DynamicMetaObject.BindGetIndex
(System.Dynamic.GetIndexBinder binder, System.Dynamic.DynamicMetaObject[]
indexes) 0x40df6830 + 0x00043& in filename unknown 
  at System.Dynamic.DynamicObject+MetaDynamic.BindGetIndex
(System.Dynamic.GetIndexBinder binder, System.Dynamic.DynamicMetaObject[]
indexes) 0x40df6440 + 0x001e3& in filename unknown 
  at System.Dynamic.GetIndexBinder.Bind (System.Dynamic.DynamicMetaObject
target, System.Dynamic.DynamicMetaObject[] args) 0x40df61e0 + 0x00063& in
filename unknown 
  at System.Dynamic.DynamicMetaObjectBinder.Bind (System.Object[] args,
System.Collections.ObjectModel.ReadOnlyCollection`1 parameters,
System.Linq.Expressions.LabelTarget returnLabel) 0x40df5360 + 0x001c0& in
filename unknown 
  at System.Runtime.CompilerServices.CallSiteBinder.BindCore[T]
(System.Runtime.CompilerServices.CallSite`1 site, System.Object[] args)
0x40df4b10 + 0x000a9& in filename unknown 
  at System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet]
(System.Runtime.CompilerServices.CallSite site, System.Dynamic.T0 arg0,
System.Dynamic.T1 arg1) 0x40df3ea0 + 0x004e7& in filename unknown 
  at Nancy.Conventions.BuiltInCultureConventions.FormCulture
(Nancy.NancyContext context) 0x40deed70 + 0x002c4& in filename unknown 
  at Nancy.Culture.DefaultCultureService.DetermineCurrentCulture
(Nancy.NancyContext context) 0x40deeaf0 + 0x0006e& in filename unknown 
  at Nancy.DefaultNancyContextFactory.Create (Nancy.Request request)
0x40dee500 + 0x00071& in filename unknown 
  at Nancy.Routing.RouteCache..ctor (INancyModuleCatalog moduleCatalog,
INancyContextFactory contextFactory, IRouteSegmentExtractor
routeSegmentExtractor, IRouteDescriptionProvider routeDescriptionProvider,
ICultureService cultureService) 0x40deab70 + 0x00103& in filename unknown 
  at Nancy.Diagnostics.DiagnosticsHook.Enable
(Nancy.Diagnostics.DiagnosticsConfiguration diagnosticsConfiguration,
IPipelines pipelines, IEnumerable`1 providers, IRootPathProvider
rootPathProvider, IRequestTracing requestTracing,
Nancy.Bootstrapper.NancyInternalConfiguration configuration,
IModelBinderLocator modelBinderLocator, IEnumerable`1 responseProcessors,
IEnumerable`1 routeSegmentConstraints, ICultureService cultureService)
0x40de55d0 + 0x001df& in filename unknown 
  at Nancy.Diagnostics.DefaultDiagnostics.Initialize (IPipelines pipelines)
0x40de5540 + 0x00063& in filename unknown 
  at Nancy.Bootstrapper.NancyBootstrapperBase`1[TContainer].Initialise ()
0x40ce1f80 + 0x0083b& in filename unknown 
  at Nancy.Hosting.Aspnet.NancyHttpRequestHandler..cctor () 0x40cb6490 +
0x00022& in filename unknown 



--
View this message in context: http://mono.1490590.n4.nabble.com/Could-not-load-file-or-assembly-or-one-of-its-dependencies-tp4668565.html
Sent from the Mono - General mailing list archive at Nabble.com.


More information about the Mono-list mailing list