OnPublished事件未被解雇 [英] OnPublished event not getting fired

查看:101
本文介绍了OnPublished事件未被解雇的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用OnPublished事件更新自定义字段值。第一次发布和调试模式时,代码工作正常。  值也会在已发布的数据库中更新。但是,我需要每次都重新启动队列服务
和事件服务以获取MPP中的更新值。任何人都可以为此建议解决方案,因为每次都无法重启事件服务。

解决方案

Hello Mayur,


<每次更改事件源代码时都必须重新启动Microsoft Project Server事件。


这样做的原因是,当服务启动时,它将预加载每个已注册的事件及其来源代码。


我目前的方法是开发一个将事件处理程序源代码放到GAC的SharePoint解决方案。


更改自定义字段值后您需要重新发布项目计划,以便在PWA和Project Professional上显示更改(从发布数据库中读取)。



这有帮助吗?


I want to update the custom field values using the OnPublished event. The code works fine when it is published for the first time and in the debug mode.  The values are updated in the published database too. But I need to restart the Queue services and Event services everytime to get the updated values in the MPP. Can anyone suggest a solution for this because it is not possible to restart event services everytime.

解决方案

Hello Mayur,

you must restart the Microsoft Project Server Eventing everytime you change the event source code.

The reason of this is that when the Service starts it will pre-load every Event Registered and its source code.

My current approach is to develop a SharePoint solution that places the Event Handler Source code to GAC.

After you change the Custom Field values you need to re-publish the project plan in order for the changes to become visible on PWA and on Project Professional (reading from the Publish database).

Does this helped?


这篇关于OnPublished事件未被解雇的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆