Updates are currently disallowed on GET requests. To allow updates on a GET, set the 'AllowUnsafeUp
来源:互联网 发布:2017云计算的上市公司 编辑:程序博客网 时间:2024/06/06 21:21
在处理sharepoint的term value赋值时出现了如下错误.
Updates are currently disallowed on GET requests. To allow updates on a GET, set the 'AllowUnsafeUpdates' property on SPWeb
解决方案:
1.如果是用Ajax请求处理更新item的 Term or Termset,最好改用POST,
2.如果必须用GET方式需要,则需要做以下处理.
HttpContext savedHttpContext = HttpContext.Current; try { HttpContext.Current = null; dosomethingcatch (Exception ex){ throw ex; }finally{ HttpContext.Current = savedHttpContext; }
0 0
- Updates are currently disallowed on GET requests. To allow updates on a GET, set the 'AllowUnsafeUp
- multi-threading batch updates, how to get unique identifiers
- How to disable automatic updates on Fedora 25?
- Starting up Pi/RTEMS development again, updates on the way!
- linkedin javascript oauth and get company updates
- Get a list of all application currently installed on a phone
- Critical Functional Bug on cannot rebuild files which the updates files do not exist was fixed.
- Get on the D-BUS
- How to get the kernel memory range on OpenSolaris
- Linux:Failed to get exclusive lock on the configuration file
- How to get a stack trace on Windows zz
- How to get the data from a cell when I click on the GridButtonColumn of the same row
- svn : how to set the executable bit on a file?
- Heap updates are NOT ENABLED
- Failed to get lock on destination repos
- How to get sudo on Your ubuntu
- Let's get on the battlefield!
- Get the First Touch on JQuery
- Activity之间传递List<T>数据
- swift和OC混合编程枚举类型无法判断
- 统计学习笔记(3)——k近邻法与kd树
- 杭电1596find the safest road(spfa)
- 快速排序的实现---数据结构学习(六)
- Updates are currently disallowed on GET requests. To allow updates on a GET, set the 'AllowUnsafeUp
- 一个DDOS病毒的分析(一)
- JDBC setDate() 时间设置问题
- Linux下Redis启动/关闭/重启服务脚本
- SpringMVC简介、工作流程、配置
- Cursor引起内存泄露
- 【Cocos2dx】新建场景、场景的切换、设置启动场景与菜单的新建
- 开启JS学习之路
- 如何通过jquery禁止form表单提交