cannot add event procedure

  • Thread starter Thread starter peter shaw
  • Start date Start date
P

peter shaw

Hi,

I got an error message after I created a new event procedure for a grid
control. But I can write a new procedure without any problem.

The error is
Microsoft.Practices.CompositeUI.Services.ModuleLoadException was unhandled
Message="Failed to load module from assembly
f788cd0a-5bc6-4b44-892e-979c1283117e. Error was:\r\nFailed to load module
from assembly DocumentManagement, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=null. Error was:\r\nException has been thrown by the target
of an invocation."
Source="Infrastructure.Library"


Thanks
 
It's porbably because you called it from a subclass:

EventHandler thingHappened;
public event EventHandler ThingHappened
{
add { thingHappened += value; }
remove { thingHappened -= value; }
}
 
Back
Top