Not logged in. · Lost password · Register
Forum: MatriX RSS
Avatar
roseline2 #1
Member since May 2012 · 8 posts
Group memberships: Members
Show profile · Link to this post
Subject: Gmail problem on windows phone 7 device
I have a problem, I can't connect to gmail account from windows phone 7 device, I have downloaded the latest Matrix build too, but the problem remain, I got this error "System.UnauthorizedAccessException", it happens only on Device
I also got:
A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
A first chance exception of type 'System.Net.WebException' occurred in System.Windows.dll
A first chance exception of type 'System.Net.WebException' occurred in System.Windows.dll
SEND: </stream:stream>
OnClose

I tried with Jabber account and i didn't have any problems

XML logs:

  1. SEND: <stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" to="gmail.com" version="1.0" >
  2. REC: <stream:stream xmlns:stream="http://etherx.jabber.org/streams" from="gmail.com" id="958164C73F473921" version="1.0" xmlns="jabber:client" >
  3. REC: <stream:features xmlns:stream="http://etherx.jabber.org/streams">
  4.  <starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls">
  5.     <required />
  6.  </starttls>
  7.  <mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl">
  8.     <mechanism>X-GOOGLE-TOKEN</mechanism>
  9.     <mechanism>X-OAUTH2</mechanism>
  10.  </mechanisms>
  11. </stream:features>
'UI Task' (Managed): Loaded 'System.SR.dll'
A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
A first chance exception of type 'System.Net.WebException' occurred in System.Windows.dll
A first chance exception of type 'System.Net.WebException' occurred in System.Windows.dll
A first chance exception of type 'System.UnauthorizedAccessException' occurred in System.Windows.dll
This post was edited on 2013-04-26, 12:22 by Alex.
Avatar
Alex #2
Member since Feb 2003 · 4327 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
So your code runs fine on the emulator and you get this exception only on a real device?

On WP7 MatriX hast to execute some https Webrequests for Gmail authentication. Is there something on your device which blocks Web requests?
Can you get the full stacktrace of this exception?
Avatar
roseline2 #3
Member since May 2012 · 8 posts
Group memberships: Members
Show profile · Link to this post
"So your code runs fine on the emulator and you get this exception only on a real device?" Yes
I don't have the device right now, I will be able to tell you more information the next week
Avatar
roseline2 #4
Member since May 2012 · 8 posts
Group memberships: Members
Show profile · Link to this post
I got this:

System.Windows.dll!System.Net.Browser.ClientHttpWebRequest.InternalEndGetResponse(System.IAsyncResult asyncResult) + 0x68 bytes   
System.Windows.dll!System.Net.Browser.ClientHttpWebRequest.EndGetResponse.AnonymousMethod__1(object sendState)   
System.Windows.dll!System.Net.Browser.AsyncHelper.BeginOnUI.AnonymousMethod__0(object sendState) + 0x11 bytes   
mscorlib.dll!System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo rtmi, object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, object parameters, System.Globalization.CultureInfo culture, bool isBinderDefault, System.Reflection.Assembly caller, bool verifyAccess, ref System.Threading.StackCrawlMark stackMark)   
mscorlib.dll!System.Reflection.RuntimeMethodInfo.InternalInvoke(object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, object[] parameters, System.Globalization.CultureInfo culture, ref System.Threading.StackCrawlMark stackMark) + 0x168 bytes   
mscorlib.dll!System.Reflection.MethodBase.Invoke(object obj, object[] parameters) + 0xa bytes   
mscorlib.dll!System.Delegate.DynamicInvokeOne(object[] args) + 0x98 bytes   
mscorlib.dll!System.MulticastDelegate.DynamicInvokeImpl(object[] args) + 0x8 bytes   
mscorlib.dll!System.Delegate.DynamicInvoke(object[] args) + 0x2 bytes   
System.Windows.dll!System.Windows.Threading.Dispatcher.FastInvoke.AnonymousMethod__3() + 0xc bytes   
mscorlib.dll!System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo rtmi, object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, object parameters, System.Globalization.CultureInfo culture, bool isBinderDefault, System.Reflection.Assembly caller, bool verifyAccess, ref System.Threading.StackCrawlMark stackMark)   
mscorlib.dll!System.Reflection.RuntimeMethodInfo.InternalInvoke(object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, object[] parameters, System.Globalization.CultureInfo culture, ref System.Threading.StackCrawlMark stackMark) + 0x168 bytes   
mscorlib.dll!System.Reflection.MethodBase.Invoke(object obj, object[] parameters) + 0xa bytes   
mscorlib.dll!System.Delegate.DynamicInvokeOne(object[] args) + 0x98 bytes   
mscorlib.dll!System.MulticastDelegate.DynamicInvokeImpl(object[] args) + 0x8 bytes   
mscorlib.dll!System.Delegate.DynamicInvoke(object[] args) + 0x2 bytes   
System.Windows.dll!System.Windows.Threading.DispatcherOperation.Invoke() + 0xc bytes   
System.Windows.dll!System.Windows.Threading.Dispatcher.Dispatch(System.Windows.Threading.DispatcherPriority priority) + 0x83 bytes   
System.Windows.dll!System.Windows.Threading.Dispatcher.OnInvoke(object context) + 0x8 bytes   
System.Windows.dll!System.Windows.Hosting.CallbackCookie.Invoke(object[] args) + 0x19 bytes   
System.Windows.dll!System.Windows.Hosting.DelegateWrapper.InternalInvoke(object[] args) + 0x2 bytes   
System.Windows.RuntimeHost.dll!System.Windows.RuntimeHost.ManagedHost.InvokeDelegate(System.IntPtr pHandle, int nParamCount, System.Windows.Hosting.NativeMethods.ScriptParam[] pParams, ref System.Windows.Hosting.NativeMethods.ScriptParam pResult) + 0x5e bytes
This post was edited 2 times, last on 2013-04-26, 12:23 by Alex.
Avatar
Alex #5
Member since Feb 2003 · 4327 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
this exception is totally different to the one you posted before which was:

'UI Task' (Managed): Loaded 'System.SR.dll'
A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
A first chance exception of type 'System.Net.WebException' occurred in System.Windows.dll
A first chance exception of type 'System.Net.WebException' occurred in System.Windows.dll
A first chance exception of type 'System.UnauthorizedAccessException' occurred in System.Windows.dll

what it does is a web request to the following URI to get a token for the authentication at Google:
https://www.google.com/accounts/ClientAuth

The last stacktrace you posted tells nothing to me. The one you posted before could be probably a certificate problem, but not sure.
This post was edited on 2013-03-18, 21:20 by Alex.
Avatar
roseline2 #6
Member since May 2012 · 8 posts
Group memberships: Members
Show profile · Link to this post
I hope this is more useful

System.Windows.dll!MS.Internal.XcpImports.CheckThread() + 0x21 bytes   
System.Windows.dll!MS.Internal.XcpImports.DispatcherTimer_Stop(System.Windows.Threading.DispatcherTimer timer) + 0x5 bytes   
System.Windows.dll!System.Windows.Threading.DispatcherTimer.Stop() + 0xd bytes   
Matrix.dll!Matrix.XmppStream.DestroyKeepAliveTimer() + 0x27 bytes   
Matrix.dll!Matrix.XmppStream.Close() + 0x6 bytes   
Matrix.dll!??.?(System.IAsyncResult ?) + 0xb8 bytes   
System.Windows.dll!System.Net.Browser.ClientHttpWebRequest.InvokeGetResponseCallback.AnonymousMethod__8(object state2) + 0x1b bytes   
mscorlib.dll!System.Threading.ThreadPool.WorkItem.WaitCallback_Context(object state) + 0x18 bytes   
mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) + 0x63 bytes   
mscorlib.dll!System.Threading.ThreadPool.WorkItem.doWork(object o) + 0x47 bytes   
mscorlib.dll!System.Threading.Timer.ring() + 0x70 bytes
This post was edited on 2012-10-25, 12:49 by roseline2.
Avatar
roseline2 #7
Member since May 2012 · 8 posts
Group memberships: Members
Show profile · Link to this post
This is what i get handle "System.IO.FileNotFoundException" Exception


mscorlib.dll!System.ThrowHelper.throwVersion37CompatException(System.ExceptionType newEType, string newString, System.ExceptionType oldEType, string oldString) + 0x19 bytes   
mscorlib.dll!System.Reflection.Assembly.Load(string assemblyString) + 0x5d bytes   
System.Windows.dll!System.Windows.Resx.Resx() + 0x29 bytes   
System.Windows.dll!System.Windows.Resx.GetLoader() + 0x1f bytes   
System.Windows.dll!System.Windows.Resx.GetString(string name, out bool fallbackUsed, object[] args)   
System.Windows.dll!System.Windows.Resx.GetString(string name, object[] args)   
System.Windows.dll!System.Net.Browser.ClientHttpWebRequest.Failed(object sender, System.EventArgs e) + 0xf8 bytes   
System.Windows.dll!MS.Internal.InternalWebRequest.OnDownloadFailed(object sender, MS.Internal.ErrorEventArgs args) + 0x15 bytes   
System.Windows.dll!MS.Internal.CoreInvokeHandler.InvokeEventHandler(int typeIndex, System.Delegate handlerDelegate, object sender, object args) + 0x3f4 bytes   
System.Windows.dll!MS.Internal.JoltHelper.FireEvent(System.IntPtr unmanagedObj, System.IntPtr unmanagedObjArgs, int argsTypeIndex, int actualArgsTypeIndex, string eventName) + 0x178 bytes   
[External Code]
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: MatriX RSS