SharePoint 中的 HttpOnly cookie 会破坏浏览器中工作流的创建
这不是一个问题,而是我刚刚发现的一个解决方案。 问题是这样的: 当我尝试通过 MOSS Enterprise 安装中的浏览器在文档库上创建审批工作流程时,收到“意外错误”消息。将错误输出到浏览器,我得到
Value cannot be null. Parameter name: g at System.Guid..ctor(string g) at Microsoft.Office.Workflow.WrkAssocPage.AssociationOnLoad(EventArgs ea) ...
日志没有提供任何更多有用的信息。
我找到了此页面 http ://social.msdn.microsoft.com/forums/en-US/sharepointworkflow/thread/f84f0878-5c40-41fa-accc-9961cef93792/,其中有一些听起来很有前途的解决方案,但没有一个适用于我。
对我有用的解决方案是关闭 httpOnly cookies,我最近在 web.config 中启用了该功能
This is not a question but a solution that I just discovered.
The issue was this:
When I tried to create an Approval workflow on a document library through the browser in a a MOSS Enterprise installation, I got and "Unexpected Error" message. Outputting the error to the browser, I got
Value cannot be null. Parameter name: g at System.Guid..ctor(string g) at Microsoft.Office.Workflow.WrkAssocPage.AssociationOnLoad(EventArgs ea) ...
The logs did not provide any more useful information.
I found this page http://social.msdn.microsoft.com/forums/en-US/sharepointworkflow/thread/f84f0878-5c40-41fa-accc-9961cef93792/, which has some promising-sounding solutions, but none of them worked for me.
The solution that did work for me was to turn off httpOnly cookies, which I had recently enabled in the web.config with the line
<httpCookies httpOnlyCookies="true" />.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这些页面上表单背后的代码需要能够在 cookie 中存储数据。
解决方案是:如果您想使用工作流程,请不要将
httpOnlyCookies="true"
放入 web.config 中。The code behind the forms on those pages needs to be able to store data in cookies.
The solution is: don't put
httpOnlyCookies="true"
in your web.config if you want to use Workflows.