Sharepoint 计时器作业属性的严重问题

发布于 2024-09-07 10:36:10 字数 455 浏览 4 评论 0原文

几分钟前,我尝试创建一个时间作业

A 添加了一些像这样的属性

。Properties.Add("fileName", fileName); this.Properties.Add("username", new NetworkCredential("username", "passworD");

更新作业后,管理中心的计时器作业列表中出现严重错误。

平台不知道如何反序列化 System.Net.NetworkCredential 类型的对象。该平台可以反序列化原始类型,例如字符串、整数和 GUID;其他 SPPersistedObject 或 SPAutoserializingObjects 或上述任何类型的集合。这些支持的格式,或联系您的软件供应商寻求支持。

现在我无法使用 SPJobdefinition 的 Delete() 方法或 SPObject 模型中的其他类删除或撤回作业。

Some minutes ago I tried to create a time job

A added some properties like

this.Properties.Add("fileName", fileName);
this.Properties.Add("username", new NetworkCredential("username", "passworD");

After updating the job a get a critical error in the Timer Job list of the Central Administration occured.

The platform does not know how to deserialize an object of type System.Net.NetworkCredential. The platform can deserialize primitive types such as strings, integers, and GUIDs; other SPPersistedObjects or SPAutoserializingObjects; or collections of any of the above. Consider redesigning your objects to store values in one of these supported formats, or contact your software vendor for support.

Now Im unabled to delete or retract the job with SPJobdefinition's Delete() method or other classes within the SPObject model.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

素食主义者 2024-09-14 10:36:11

好的。我得到了它。
我删除了SharepointConfigDatabase.dbo.Objects表中的相应对象

Ok. I got it.
I deleted the corresponding object in the SharepointConfigDatabase.dbo.Objects table

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文