Closed GoogleCodeExporter closed 9 years ago
Tried MSNP 3.1.0.1719, same code,
got another exception a few time on test workstation,
but 100% of time on production server
Exception: System.NullReferenceException
Message: Object reference not set to an instance of an object.
StackTrace: at MSNPSharp.MSNStorageService.GetProfileImpl(PartnerScenario
scenario)
at MSNPSharp.MSNStorageService.GetProfile()
at MSNPSharp.ContactService.SetDefaults()
at MSNPSharp.ContactService.<SynchronizeContactList>b__1(Object , ABFindContactsPagedCompletedEventArgs )
at MSNPSharp.ContactService.<>c__DisplayClasse.<abRequest>b__b(Object sender, ABFindContactsPagedCompletedEventArgs e)
at MSNPSharp.MSNWS.MSNABSharingService.ABServiceBinding.OnABFindContactsPagedOperationCompleted(Object arg)
at System.Threading._ThreadPoolWaitCallback.WaitCallback_Context(Object state)
at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(_ThreadPoolWaitCallback tpWaitCallBack)
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)
Original comment by cheng....@gmail.com
on 12 Nov 2010 at 2:48
It seems that you are using this library in a ASP.NET web application. However,
I don't know whether the web app support async callback. You also need to set
Settings.NoSave to true avoiding the library write files to your hard disk.
Original comment by freezing...@gmail.com
on 12 Nov 2010 at 7:36
I add Settings.NoSave = true, seems works most of time,
however, I receive exceptions and asp.net server crashed some time when I
trying to Messenger.Connect()
MSNP version 3.1.0.1719
exception:
EventType clr20r3, P1 webdev.webserver.exe, P2 9.0.0.0, P3 488f1aa2, P4
msnpsharp, P5 3.1.0.1719, P6 4cdd957c, P7 151d, P8 14c, P9 exception, P10 NIL.
An unhandled exception occurred and the process was terminated.
Application ID: 60cf2f5e
Process ID: 3956
Exception: System.NullReferenceException
Message: Object reference not set to an instance of an object.
StackTrace: at MSNPSharp.MSNStorageService.GetProfileImpl(PartnerScenario
scenario)
at MSNPSharp.MSNStorageService.GetProfile()
at MSNPSharp.ContactService.SetDefaults()
at MSNPSharp.ContactService.<SynchronizeContactList>b__1(Object , ABFindContactsPagedCompletedEventArgs )
at MSNPSharp.ContactService.<>c__DisplayClasse.<abRequest>b__b(Object sender, ABFindContactsPagedCompletedEventArgs e)
at MSNPSharp.MSNWS.MSNABSharingService.ABServiceBinding.OnABFindContactsPagedOperationCompleted(Object arg)
at System.Threading._ThreadPoolWaitCallback.WaitCallback_Context(Object state)
at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(_ThreadPoolWaitCallback tpWaitCallBack)
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)
Original comment by cheng....@gmail.com
on 12 Nov 2010 at 8:42
Did you export the trace log of MSNPSharp? If you have, please email a copy to
me.
Original comment by freezing...@gmail.com
on 13 Nov 2010 at 6:00
[deleted comment]
BTW, logging on your production server as an admin will not solve any privilege
issue for your application, you need to give write permission of your app or
the IIS server, but that's very dangerous.
Original comment by freezing...@gmail.com
on 13 Nov 2010 at 6:08
any easy way to get trace log?
Thank you
Original comment by cheng....@gmail.com
on 16 Nov 2010 at 8:40
Take a look at TraceForm.cs, output the text to a file instead of to the
RichTextBox.
Original comment by freezing...@gmail.com
on 16 Nov 2010 at 10:25
Original comment by freezing...@gmail.com
on 21 Nov 2010 at 9:52
Original issue reported on code.google.com by
cheng....@gmail.com
on 12 Nov 2010 at 2:03