This line of code throws System.NotImplementedException in code build with MT 
4.2.1 on device. It works on simulator.



var path = 
Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetModules()[0].FullyQualifiedName);



System.NotImplementedException: Derived classes must implement it

  at System.Reflection.Module.IsResource () [0x00000] in 
/Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Reflection/Module.cs:361

  at System.Reflection.MonoAssembly.GetModules (Boolean getResourceModules) 
[0x00024] in 
/Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Reflection/MonoAssembly.cs:110

  at System.Reflection.Assembly.GetModules () [0x00000] in 
/Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Reflection/Assembly.cs:705

  at MobileCrm.Program.RunApplication (System.Object applicationContext) 
[0x00006] in 
/Users/michalsartoris/Projects/Resco.MonoTouch/SwedishMatch/MobileCrm/Program.cs:183



Best regards,



Ing. Michal Sartoris

Resco.net<http://resco.net/>



_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to