首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >NullReferenceException在Xamarin.IOS中使用Office365API时

NullReferenceException在Xamarin.IOS中使用Office365API时
EN

Stack Overflow用户
提问于 2014-07-02 21:28:10
回答 2查看 345关注 0票数 2

首先,我有一个问题:Using Office 365 API in Xamarin.Android

现在,在Xamarin IOS中进行同样的测试,我得到了另一个:(

代码语言:javascript
复制
{System.NullReferenceException: Object reference not set to an instance of an object
  at Microsoft.Office365.OAuth.Authenticator.GetRefreshToken (System.String resource) [0x00000] in <filename unknown>:0 
  at Microsoft.Office365.OAuth.Authenticator+<GetAuthenticationResult>d__c.MoveNext () [0x00000] in <filename unknown>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000b] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Runtime.ExceptionServices/ExceptionDispatchInfo.cs:62 
  at System.Runtime.CompilerServices.TaskAwaiter`1[Microsoft.Office365.OAuth.AuthenticationInfo].GetResult () [0x00034] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Runtime.CompilerServices/TaskAwaiter_T.cs:59 
  at Microsoft.Office365.OAuth.Authenticator+<AuthenticateAsync>d__6.MoveNext () [0x00000] in <filename unknown>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000b] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Runtime.ExceptionServices/ExceptionDispatchInfo.cs:62 
  at System.Runtime.CompilerServices.TaskAwaiter`1[Microsoft.Office365.OAuth.AuthenticationInfo].GetResult () [0x00034] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Runtime.CompilerServices/TaskAwaiter_T.cs:59 
  at Office365InXamarinApps.ViewModel.ContactsViewModel+<EnsureClientCreated>d__9.MoveNext () [0x00046] in c:\DevApps\GitHub\Office365InXamarinApps\scr\Office365InXamarinApps\Office365InXamarinApps\ViewModel\ContactsViewModel.cs:76 }

代码在这里:https://github.com/saramgsilva/Office365InXamarinApp

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2014-07-06 14:03:58

Office 365 API预览有问题,我不能使用它,因此我使用Office365RESTAPI创建了另一个演示。

https://github.com/saramgsilva/Office365RESTAPISample

票数 1
EN

Stack Overflow用户

发布于 2014-07-31 15:47:52

您可能需要查看这篇博客文章(参见Xamarin论坛中的链接),-Xamarin开发人员能够让它在Android上工作

http://forums.xamarin.com/discussion/21367/put-some-office-365-in-your-apps

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/24541318

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档