注册事件处理程序时出错 [英] Error while registering Event Handler

查看:88
本文介绍了注册事件处理程序时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


全部,

Hi All,

我已经在Project Server 2010服务器上开发了事件处理程序 机器本身,以避免与DLL引用发生任何冲突。现在,我使用"Project - Created"注册此事件处理程序事件,以下是错误 我在
中收到事件日志 -

I have developed the event handler on the Project Server 2010 server machine itself to avoid any conflicts with DLL references. Now I register this event handler with "Project - Created" event, the following is the error I receive in the event log -

SEP:无法创建接收者类的实例:PSI_Event_Handler_OnCreated01,Version = 1.0.0.0 ,Culture = neutral,PublicKeyToken = 1333b68ebffbae4f,PSI_Event_Handler.RaiseEvent 例外:无法加载文件或程序集'PSI_Event_Handler_OnCreated01,
Version = 1.0.0.0,Culture = neutral,PublicKeyToken = 1333b68ebffbae4f'或其依赖项之一。尝试加载格式不正确的程序。

我无法找到相关的解决方案,几乎已经尝试了我所知道的一切。不明白是什么意思 -
试图加载格式不正确的程序。 请求您提供帮助。

I am unable to find a relevant solution and have almost tried everything that I am aware of. Dont understand what means by - An attempt was made to load a program with an incorrect format. Request you to kindly help.

问候,

Ashutosh Kashyap

推荐答案

您的代码是什么样的?你在使用命名空间吗?注册不会,但Visual Studio通常会创建一个。
What does your code look like? Are you using namespaces? The registration tells not, but Visual Studio typically does create one.


这篇关于注册事件处理程序时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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