I created web service using VWD2008 Express and DbLinq from todays SVN. It works OK in Windows.
When this web service is copied to Apache server hosting Mono 2.4 + mod_mono, strange exception below occurs when new entity is added to db. I created DbLinq.dll.mdb using pdb2mdb from http://my-trac.assembla.com/SToolsMirror/browser/pdb2mdb/090205.patched/bin and copied it to the same bin directory where DbLinq.dll resides. Mono is running in debug mode and application is compiled in debug mode but there are no line numbers in stack trace. How to fix or debug this issue ? Same application which uses old DbLinq works OK. Andrus. System.Reflection.TargetParameterCountException: parameters do not match signature at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x00000] at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00000] at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] at DbLinq.Data.Linq.Sugar.Expressions.ObjectInputParameterExpression.GetValue (System.Object o) [0x00000] at DbLinq.Data.Linq.Sugar.ParameterizedQuery.GetCommand () [0x00000] at DbLinq.Data.Linq.Sugar.Implementation.QueryRunner.Upsert (System.Object target, DbLinq.Data.Linq.Sugar.UpsertQuery insertQuery) [0x00000] at DbLinq.Data.Linq.Sugar.Implementation.QueryRunner.Insert (System.Object target, DbLinq.Data.Linq.Sugar.UpsertQuery insertQuery) [0x00000] at DbLinq.Data.Linq.DataContext.InsertEntity (System.Object entity, DbLinq.Data.Linq.Sugar.QueryContext queryContext) [0x00000] at DbLinq.Data.Linq.DataContext.SubmitChanges (ConflictMode failureMode) [0x00000] at DbLinq.Data.Linq.DataContext.SubmitChanges () [0x00000] at MyApp.Business.Dok.Add[KuulutusDokT,RidT] (IList`1 rids) [0x00000] at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] if i try several times, sometimes different exception occurs: Cannot cast from source type to destination type. System.InvalidCastException: Cannot cast from source type to destination type. at System.Delegate.get_Method () [0x00000] at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x00000] at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00000] at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] at DbLinq.Data.Linq.Sugar.Implementation.QueryRunner+<EnumerateResult>d__b.MoveNext () [0x00000] at DbLinq.Data.Linq.Sugar.Implementation.QueryRunner+<ExecuteSelect>d__0.MoveNext () [0x00000] at DbLinq.Data.Linq.DataContext+<CreateExecuteQueryEnumerable>d__d`1[Business.Datadict].MoveNext () [0x00000] at System.Collections.Generic.List`1[Business.Datadict].AddEnumerable (IEnumerable`1 enumerable) [0x00000] at System.Collections.Generic.List`1[Business.Datadict]..ctor (IEnumerable`1 collection) [0x00000] at System.Linq.Enumerable.ToList[Datadict] (IEnumerable`1 source) [0x00000] at Business.Database.ExecQuery[Datadict] (System.String command, System.Type[] src, System.Object[] prm) [0x00000] at Business.Database.ExecQuery[Datadict,Datadict] (System.String command, System.Object[] prm) [0x00000] at Business.EntityFactory.GetSpecialPropertyScript (System.String entityName) [0x00000] at Business.EntityFactory.GetCustomEntityType (System.String entityName) [0x00000] at Business.EntityFactory.Get (System.String entityName) [0x00000] at Business.EntityFactory.Create (System.String entityName) [0x00000] at Service.StockService.AddNewKuulutus (Service.UserCredentials& header, System.String headerEntity, Business.FormField[] headerFields, Business.RidT[] rowFields) [0x00000] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "DbLinq" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/dblinq?hl=en -~----------~----~----~----~------~----~------~--~---
