c# - Difference in debug/release build Xamarin.Android project -
if compile project , deploy in debug mode, works fine. app fires , can used.if same release build, app gets deployed on device, fires runs exception before self written code has executed. stack trace have showing little information. see first exception occurs after loading system.runtime.serialization.dll
loaded assembly: minbuza.conference.android.dll loaded assembly: exiflib.dll loaded assembly: formsviewgroup.dll loaded assembly: microsoft.practices.servicelocation.dll loaded assembly: microsoft.practices.unity.dll loaded assembly: microsoft.windowsazure.mobile.dll loaded assembly: microsoft.windowsazure.mobile.ext.dll loaded assembly: minbuza.conference.forms.dll loaded assembly: minbuza.conference.framework.dll loaded assembly: minbuza.conference.security.dll loaded assembly: newtonsoft.json.dll loaded assembly: sqlite.net.dll loaded assembly: sqlite.net.platform.xamarinandroid.dll loaded assembly: system.net.http.extensions.dll loaded assembly: system.net.http.primitives.dll loaded assembly: xamarin.android.support.v13.dll loaded assembly: xamarin.android.support.v4.dll loaded assembly: xamarin.forms.core.dll loaded assembly: xamarin.forms.labs.dll loaded assembly: xamarin.forms.labs.droid.dll loaded assembly: xamarin.forms.platform.android.dll loaded assembly: xamarin.forms.xaml.dll loaded assembly: xlabs.ioc.dll loaded assembly: xlabs.ioc.unity.dll 11-27 10:33:42.225 i/activitythread(10427): pub minbuza.conference.android.mono.monoruntimeprovider.__mono_init__: mono.monoruntimeprovider 11-27 10:33:42.225 d/dalvikvm(10427): trying load lib /data/data/minbuza.conference.android/lib/libmonodroid.so 0x4133f6a8 loaded assembly: xlabs.serialization.dll 11-27 10:33:42.225 d/dalvikvm(10427): added shared lib /data/data/minbuza.conference.android/lib/libmonodroid.so 0x4133f6a8 11-27 10:33:42.265 w/monodroid-debug(10427): trying initialize debugger options: --debugger-agent=transport=dt_socket,loglevel=0,address=127.0.0.1:8849,server=y,embedding=1 11-27 10:33:42.305 w/monodroid-debug(10427): accepted stdout connection: 46 11-27 10:33:44.495 w/monodroid-gc(10427): gref gc threshold: 46800 loaded assembly: xlabs.serialization.servicestack.droid.dll loaded assembly: system.diagnostics.tracing.dll [external] loaded assembly: system.reflection.emit.dll [external] loaded assembly: system.reflection.emit.ilgeneration.dll [external] loaded assembly: system.reflection.emit.lightweight.dll [external] loaded assembly: system.servicemodel.security.dll [external] loaded assembly: system.threading.timer.dll [external] loaded assembly: microsoft.practices.prism.pubsubevents.dll loaded assembly: microsoft.practices.prism.mvvm.dll loaded assembly: microsoft.practices.prism.sharedinterfaces.dll loaded assembly: minbuza.conference.data.dll loaded assembly: minbuza.conference.business.dll loaded assembly: minbuza.conference.serviceagents.dll loaded assembly: mono.android.dll [external] loaded assembly: system.core.dll [external] loaded assembly: monodroidconstructors [external] loaded assembly: system.dll [external] 11-27 10:33:46.035 i/dalvikvm-heap(10427): grow heap (frag case) 9.543mb 1048592-byte allocation 11-27 10:33:46.055 d/dalvikvm(10427): gc_concurrent freed 80k, 11% free 8013k/8967k, paused 2ms+1ms thread started: #2 loaded assembly: system.net.http.dll [external] loaded assembly: system.runtime.serialization.dll [external] unhandled exception occured. 11-27 10:33:51.995 i/monodroid(10427): unhandled exception: 11-27 10:33:52.005 i/monodroid(10427): system.nullreferenceexception: object reference not set instance of object 11-27 10:33:52.005 i/monodroid(10427): @ minbuza.conference.forms.app.getmainpage () <il 0x00007, 0x00098> 11-27 10:33:52.005 i/monodroid(10427): @ minbuza.conference.android.mainactivity.oncreate (android.os.bundle) <il 0x00035, 0x00247> unhandled exception occured. 11-27 10:33:52.005 i/monodroid(10427): @ android.app.activity.n_oncreate_landroid_os_bundle_ (intptr,intptr,intptr) <il 0x00013, 0x000ef> 11-27 10:33:52.005 i/monodroid(10427): @ (wrapper dynamic-method) object.b64662f7-89cf-4f02-bb78-f134abd760e4 (intptr,intptr,intptr) <il 0x00017, 0x00043> 11-27 10:33:52.015 i/dalvikvm(10427): not find method java.lang.throwable.<init>, referenced method android.runtime.javaproxythrowable.<init> 11-27 10:33:52.015 w/dalvikvm(10427): vfy: unable resolve direct method 6582: ljava/lang/throwable;.<init> (ljava/lang/string;ljava/lang/throwable;zz)v 11-27 10:33:52.015 d/dalvikvm(10427): vfy: replacing opcode 0x70 @ 0x0000 11-27 10:33:55.985 e/mono (10427): 11-27 10:33:55.985 e/mono (10427): unhandled exception: 11-27 10:33:55.985 e/mono (10427): system.nullreferenceexception: object reference not set instance of object 11-27 10:33:55.985 e/mono (10427): @ minbuza.conference.forms.app.getmainpage () [0x00000] in <filename unknown>:0 11-27 10:33:55.985 e/mono (10427): @ minbuza.conference.android.mainactivity.oncreate (android.os.bundle bundle) [0x00000] in <filename unknown>:0 11-27 10:33:55.985 e/mono (10427): @ android.app.activity.n_oncreate_landroid_os_bundle_ (intptr jnienv, intptr native__this, intptr native_savedinstancestate) [0x00000] in <filename unknown>:0 11-27 10:33:55.985 e/mono (10427): @ (wrapper dynamic-method) object:b64662f7-89cf-4f02-bb78-f134abd760e4 (intptr,intptr,intptr) program 'mono' has exited code 0 (0x0).
any 1 clue going wrong deployed release build?
Comments
Post a Comment