Does anyone have mod_managed working with Mono 2.6.7 on Linux?

If no what version of mono are you using?


Yitzchok


On Wed, Sep 1, 2010 at 11:10 AM, Yitzchok <adminjew@gmail.com> wrote:
@Phillip I don't think you need the namespace in there at least on windows (and in the docs it says classname)

@Jeff
It seems like the dll's and csx files load fine into freeswitch but when I call them in the dialplan it throws

Here is the exception for the csx file  

2010-09-01 10:38:04.832604 [ERR] switch_cpp.cpp:1177 Exception in Run(Ivr.TestIvr): System.NullReferenceException: Object reference not set to an instance of an object

Server stack trace:
  at System.Runtime.Serialization.SerializationCallbacks.GetMethodsByAttribute (System.Type type, System.Type attr) [0x00000] in <filename unknown>:0
  at System.Runtime.Serialization.SerializationCallbacks..ctor (System.Type type) [0x00000] in <filename unknown>:0
  at System.Runtime.Serialization.SerializationCallbacks.GetSerializationCallbacks (System.Type t) [0x00000] in <filename unknown>:0
  at System.Runtime.Serialization.SerializationObjectManager.RegisterObject (System.Object obj) [0x00000] in <filename unknown>:0
  at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.GetObjectData (System.Object obj, System.Runtime.Serialization.Formatters.Binary.TypeMetadata& metadata, System.Object& data) [0x00000] in <filename unknown>:0
  at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.WriteObject (System.IO.BinaryWriter writer, Int64 id, System.Object obj) [0x00000] in <filename unknown>:0
  at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.WriteObjectInstance (System.IO.BinaryWriter writer, System.Object obj, Boolean isValueObject) [0x00000] in <filename unknown>:0
  at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.WriteQueuedObjects (System.IO.BinaryWriter writer) [0x00000] in <filename unknown>:0
  at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.WriteObjectGraph (System.IO.BinaryWriter writer, System.Object obj, System.Runtime.Remoting.Messaging.Header[] headers) [0x00000] in <filename unknown>:0
  at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize (System.IO.Stream serializationStream, System.Object graph, System.Runtime.Remoting.Messaging.Header[] headers) [0x00000] in <filename unknown>:0
  at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize (System.IO.Stream serializationStream, System.Object graph) [0x00000] in <filename unknown>:0
  at System.Runtime.Remoting.RemotingServices.SerializeExceptionData (System.Exception ex) [0x00000] in <filename unknown>:0

Exception rethrown at [0]:

  at (wrapper xdomain-invoke) FreeSWITCH.AppPluginExecutor:Execute (string,intptr)
  at (wrapper remoting-invoke-with-check) FreeSWITCH.AppPluginExecutor:Execute (string,intptr)
  at FreeSWITCH.Loader.Run (System.String command, IntPtr sessionHandle) [0x00000] in <filename unknown>:0
2010-09-01 10:38:04.832604 [ERR] mod_managed.cpp:422 Application run failed for Ivr.TestIvr (unknown module or exception).


------

I did get this exception once it then unloads the dll and it crashed FS (but I can't reproduce it)

 2010-09-01 10:43:25.882172 [ALERT] switch_cpp.cpp:1177 Exception loading /usr/local/freeswitch/mod/managed/TestSystem.FreeSWITCH.Ivr.dll: System.ArgumentException: Culture name nSystem.FreeSWITCH.Ivr.dll is not supported.
Parameter name: name

Server stack trace:
  at System.Globalization.CultureInfo..ctor (System.String name, Boolean useUserOverride, Boolean read_only) [0x00000] in <filename unknown>:0
  at System.Globalization.CultureInfo.CreateCulture (System.String name, Boolean reference) [0x00000] in <filename unknown>:0
  at (wrapper managed-to-native) System.Reflection.Assembly:GetReferencedAssemblies ()
  at FreeSWITCH.AsmPluginManager.LoadInternal (System.String fileName) [0x00000] in <filename unknown>:0
  at FreeSWITCH.PluginManager.Load (System.String file) [0x00000] in <filename unknown>:0
  at (wrapper remoting-invoke-with-check) FreeSWITCH.PluginManager:Load (string)
  at (wrapper xdomain-dispatch) FreeSWITCH.PluginManager:Load (object,byte[]&,byte[]&,string)

Exception rethrown at [0]:

  at (wrapper xdomain-invoke) FreeSWITCH.PluginManager:Load (string)
  at (wrapper remoting-invoke-with-check) FreeSWITCH.PluginManager:Load (string)
  at FreeSWITCH.Loader.loadFile (System.String fileName) [0x00000] in <filename unknown>:0


Yitzchok



On Wed, Sep 1, 2010 at 9:18 AM, Jeff Lenk <jeff@jefflenk.com> wrote:

When Demo.csx is places in mod/managed does it get loaded and compiled
correctly?
You should see it load when FS starts as well as dynamically picked up if
copied while FS running.
What version of the framework are you compiling the dll for? that might be
the problem.
--
View this message in context: http://freeswitch-users.2379917.n2.nabble.com/mod-managed-on-linux-centos-tp5485480p5486890.html
Sent from the freeswitch-users mailing list archive at Nabble.com.