IronCow任务删除权限问题
我正在为 RememberTheMilk (http://ironcow.codeplex.com/) 使用 IronCow 托管 API,并且我正在尝试使用我的程序删除任务。我已经登录并下载了任务列表,但是当我稍后尝试删除任务列表时,出现以下异常:
[IronCow.RtmException] = {"User not logged in / Insufficient permissions"}
我正在使用此代码删除任务(rtm 是我登录的 RTM 对象,myTask 是我的任务对象)我想要删除)
TaskListCollection tlc = rtm.TaskLists;
foreach (TaskList list in tlc)
{
TaskListTaskCollection taskListsTasks = list.Tasks;
foreach (Task task in taskListTasks)
{
if (!(task.IsDeleted || task.IsCompleted) && task.Name == myTask.Name)
{
list.Tasks.Remove(task);
}
}
}
它出错的行是 list.Tasks.Remove
I'm using the IronCow managed API for RememberTheMilk (http://ironcow.codeplex.com/) and I'm trying to remove tasks using my program. I've already logged in and downloaded the tasks list, but when I later try to remove one I get the following exception:
[IronCow.RtmException] = {"User not logged in / Insufficient permissions"}
I'm removing tasks using this code (rtm is my logged in RTM object, myTask is the Task object I'm looking to delete)
TaskListCollection tlc = rtm.TaskLists;
foreach (TaskList list in tlc)
{
TaskListTaskCollection taskListsTasks = list.Tasks;
foreach (Task task in taskListTasks)
{
if (!(task.IsDeleted || task.IsCompleted) && task.Name == myTask.Name)
{
list.Tasks.Remove(task);
}
}
}
the line it errors on is list.Tasks.Remove
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
发现这是一个权限问题,因为权限是从不需要删除的旧版本应用程序中存储的
Discovered it was a permissions problem due to permissions being stored from an old version of the app that didn't need to delete