Sharepoint 计时器作业属性的严重问题
几分钟前,我尝试创建一个时间作业
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好的。我得到了它。
我删除了SharepointConfigDatabase.dbo.Objects表中的相应对象
Ok. I got it.
I deleted the corresponding object in the SharepointConfigDatabase.dbo.Objects table