Hi, 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. Is this correct approach? or application needs to be created separately to work on mono/linux? The application is built on .net framework v4.5 and my Mono JIT compiler version is 3.2.8. Currently I am getting below error. Thanks in advance for any help on this issue. Missing method .ctor in assembly /tmp/www-data-temp-aspnet-0/2d04e4f4/assembly/shadow/685bf0e7/84222002_ec79d0e5_00000001/dal.v1.dll, type Microsoft.VisualBasic.HideModuleNameAttribute Can't find custom attr constructor image: /tmp/www-data-temp-aspnet-0/2d04e4f4/assembly/shadow/685bf0e7/84222002_ec79d0e5_00000001/dal.v1.dll mtoken: 0x0a000010 * Assertion at class.c:5597, condition `!mono_loader_get_last_error ()' not met Stacktrace: at <unknown> <0xffffffff> at (wrapper managed-to-native) System.MonoCustomAttrs.GetCustomAttributesDataInternal (System.Reflection.ICustomAttributeProvider) <IL 0x0000d, 0xffffffff> at System.MonoCustomAttrs.GetCustomAttributesData (System.Reflection.ICustomAttributeProvider) <IL 0x00012, 0x0001b> at System.Reflection.CustomAttributeData.GetCustomAttributes (System.Reflection.MemberInfo) <IL 0x00001, 0x00013> at Mono.CSharp.MetadataImporter.ImportTypes (System.Type[],Mono.CSharp.Namespace,bool) <IL 0x000c3, 0x001ef> at Mono.CSharp.ReflectionImporter.ImportAssembly (System.Reflection.Assembly,Mono.CSharp.RootNamespace) <IL 0x00025, 0x000a3> at Microsoft.CSharp.RuntimeBinder.DynamicContext.Create () <IL 0x000d1, 0x00297> at Microsoft.CSharp.RuntimeBinder.CSharpGetIndexBinder.FallbackGetIndex (System.Dynamic.DynamicMetaObject,System.Dynamic.DynamicMetaObject[],System.Dynamic.DynamicMetaObject) <IL 0x00023, 0x00073> at System.Dynamic.GetIndexBinder.FallbackGetIndex (System.Dynamic.DynamicMetaObject,System.Dynamic.DynamicMetaObject[]) <IL 0x00004, 0x0002d> at System.Dynamic.DynamicMetaObject.BindGetIndex (System.Dynamic.GetIndexBinder,System.Dynamic.DynamicMetaObject[]) <IL 0x00001, 0x00043> at System.Dynamic.DynamicObject/MetaDynamic.BindGetIndex (System.Dynamic.GetIndexBinder,System.Dynamic.DynamicMetaObject[]) <IL 0x00061, 0x001ef> at System.Dynamic.GetIndexBinder.Bind (System.Dynamic.DynamicMetaObject,System.Dynamic.DynamicMetaObject[]) <IL 0x00019, 0x00063> at System.Dynamic.DynamicMetaObjectBinder.Bind (object[],System.Collections.ObjectModel.ReadOnlyCollection`1<System.Linq.Expressions.ParameterExpression>,System.Linq.Expressions.LabelTarget) <IL 0x000e1, 0x001ac> at System.Runtime.CompilerServices.CallSiteBinder.BindCore<T> (System.Runtime.CompilerServices.CallSite`1<T>,object[]) <IL 0x0002a, 0x000a1> at System.Dynamic.UpdateDelegates.UpdateAndExecute2<T0, T1, TRet> (System.Runtime.CompilerServices.CallSite,T0,T1) <IL 0x00122, 0x004c3> at Nancy.Conventions.BuiltInCultureConventions.FormCulture (Nancy.NancyContext) <IL 0x000ee, 0x002b4> at Nancy.Culture.DefaultCultureService.DetermineCurrentCulture (Nancy.NancyContext) <IL 0x00019, 0x0006e> at Nancy.DefaultNancyContextFactory.Create (Nancy.Request) <IL 0x00015, 0x00065> at Nancy.Routing.RouteCache..ctor (Nancy.INancyModuleCatalog,Nancy.INancyContextFactory,Nancy.Routing.IRouteSegmentExtractor,Nancy.Routing.IRouteDescriptionProvider,Nancy.Culture.ICultureService) <IL 0x0002c, 0x000ef> at Nancy.Diagnostics.DiagnosticsHook.Enable (Nancy.Diagnostics.DiagnosticsConfiguration,Nancy.Bootstrapper.IPipelines,System.Collections.Generic.IEnumerable`1<Nancy.Diagnostics.IDiagnosticsProvider>,Nancy.IRootPathProvider,Nancy.Diagnostics.IRequestTracing,Nancy.Bootstrapper.NancyInternalConfiguration,Nancy.ModelBinding.IModelBinderLocator,System.Collections.Generic.IEnumerable`1<Nancy.Responses.Negotiation.IResponseProcessor>,System.Collections.Generic.IEnumerable`1<Nancy.Routing.Constraints.IRouteSegmentConstraint>,Nancy.Culture.ICultureService) <IL 0x00033, 0x0019f> at Nancy.Diagnostics.DefaultDiagnostics.Initialize (Nancy.Bootstrapper.IPipelines) <IL 0x00037, 0x00063> at Nancy.Bootstrapper.NancyBootstrapperBase`1.Initialise () <IL 0x0021a, 0x007d7> at Nancy.Hosting.Aspnet.NancyHttpRequestHandler..cctor () <IL 0x00007, 0x00022> at (wrapper runtime-invoke) object.runtime_invoke_void (object,intptr,intptr,intptr) <IL 0x0004c, 0xffffffff> at <unknown> <0xffffffff> at (wrapper managed-to-native) System.Reflection.MonoCMethod.InternalInvoke (System.Reflection.MonoCMethod,object,object[],System.Exception&) <IL 0x0001c, 0xffffffff> at System.Reflection.MonoCMethod.InternalInvoke (object,object[]) <IL 0x00007, 0x0003f> at System.Reflection.MonoCMethod.DoInvoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) <IL 0x000a9, 0x00103> at System.Reflection.MonoCMethod.Invoke (System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) <IL 0x00007, 0x0003b> at System.Activator.CreateInstance (System.Type,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo,object[]) <IL 0x00186, 0x002f7> at System.Activator.CreateInstance (System.Type,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) <IL 0x0000b, 0x00043> at System.Web.Configuration.HttpHandlerAction.GetHandlerInstance () <IL 0x0004c, 0x0015b> at System.Web.Configuration.HttpHandlersSection.LocateHandler (string,string,bool&) <IL 0x0004c, 0x000db> at System.Web.HttpApplication.LocateHandler (System.Web.HttpRequest,string,string) <IL 0x00041, 0x00113> at System.Web.HttpApplication.GetHandler (System.Web.HttpContext,string,bool) <IL 0x0002c, 0x0009b> at System.Web.HttpApplication.GetHandler (System.Web.HttpContext,string) <IL 0x00004, 0x00027> at System.Web.HttpApplication/<Pipeline>c__Iterator1.MoveNext () <IL 0x008b3, 0x029d3> at System.Web.HttpApplication.Tick () <IL 0x00006, 0x00051> at System.Web.HttpApplication.Start (object) <IL 0x00095, 0x001c7> at System.Web.HttpApplication.System.Web.IHttpHandler.ProcessRequest (System.Web.HttpContext) <IL 0x0001c, 0x00067> at System.Web.HttpRuntime.Process (System.Web.HttpWorkerRequest) <IL 0x000c8, 0x0020a> at System.Web.HttpRuntime.RealProcessRequest (object) <IL 0x00029, 0x0008f> at System.Web.HttpRuntime.ProcessRequest (System.Web.HttpWorkerRequest) <IL 0x0002c, 0x00047> at Mono.WebServer.MonoWorkerRequest.ProcessRequest () <IL 0x00012, 0x0008b> at Mono.WebServer.BaseApplicationHost.ProcessRequest (Mono.WebServer.MonoWorkerRequest) <IL 0x0003a, 0x00083> at Mono.WebServer.ModMonoApplicationHost.ProcessRequest (int,string,string,string,string,string,int,string,int,string,string[],string[],object) <IL 0x0017e, 0x0054f> at (wrapper remoting-invoke-with-check) Mono.WebServer.ModMonoApplicationHost.ProcessRequest (int,string,string,string,string,string,int,string,int,string,string[],string[],object) <IL 0x0004f, 0xffffffff> at Mono.WebServer.ModMonoWorker.InnerRun (object) <IL 0x002a7, 0x0084b> at Mono.WebServer.ModMonoWorker.Run (object) <IL 0x00004, 0x0002f> at (wrapper runtime-invoke) <Module>.runtime_invoke_void__this___object (object,intptr,intptr,intptr) <IL 0x00052, 0xffffffff> Thanks, Vijay -- View this message in context: http://mono.1490590.n4.nabble.com/Missing-method-ctor-in-assembly-tp4668432.html Sent from the Mono - General mailing list archive at Nabble.com. _______________________________________________ Mono-list maillist - [email protected] http://lists.dot.net/mailman/listinfo/mono-list
