.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Task Lists . Orphan Event Handlers

Posted By:      Posted Date: August 26, 2010    Points: 0   Category :SharePoint

I wonder what are these empty event handlers that swarm in Task Lists with IDs 32767 ?

I think they can be a reason why my Announcements dont work from such lists. And wf dont autostart also (autostart on creation).

View Complete Post

More Related Resource Links

Event Handlers need to return the actual table, column and value of column and name of task which tr



Within SQL 2005 within the Event Handler tab I created a an Execute SQL Task with the following SQL statement; -

INSERT INTO dbo.CustomSSISLog (SourceName, SourceDescription, ErrorDescription,PackageName,ErrorCode,TaskName) VALUES (?,?,?,?,?,?)

In conjunction with using the Parameter Mapping tab to map parameters to system variables the above work's quite well. However the TaskName contains the name of the task which inserts the error record, I want it to contain the name of the Task (SSIS component) which triggered the error.

Also I need the error record to contain the actual table, column and value in the column which triggered the error, any ideas? There does not seem to be readily available system variables to do this.

Kind Regards,


If you have found any of my posts helpful then please vote them as helpful. Kieran Wood MCTS BI, PGD SoftDev (Open), MBCS http://uk.linkedin.com/in/bileeds

Get A Raise: Discover a Series of Fortunate Event Handlers in Visual Basic


You may use them every day, but how much do you really know about events? What's going on when you add an event handler to a class? In this article, Ken Getz demonstrates various ways to interact with events and event handlers, and shows how they can solve common problems. Along with the article, you can download two sample applications (one for Visual Basic .NET 2002 and 2003 and one for Visual Basic 2005) and follow along.

Ken Getz

MSDN Magazine June 2005

Updating Task Lists and Form Libraries From Workflow Form


There are actually two separate (I think) problems here. The scenario: I used the SharePoint Designer 2007 to create a workflow attached to a form library. When a form is submitted to the library, a To-Do-Item is created on a task list. The To-Do-Item is initially assigned to a GROUP. A user from the group then selects the name of an individual from a choice list in edit item. This person now becomes the Assigned To for the task.

What is needed is 1) To update the Assigned To column of the Form library when someone in the GROUP assigns the task to an INDIVIDUAL; and 2) To have the Due Date from the submitted InfoPath form propagate to the task list.

I've tried having one workflow try to do everything and also having a secondary workflow set up on the task list to do the task assignment update but have not been successful in solving either issue. I don’t think that I am really understanding how to Define Workflow Lookup when not working with the Current Item. I know what fields I want but I don’

InfoPath Workflow Task Form "Loading" event handler only being called after App Pool recycled.


I have a Workflow that is using an InfoPath task form.  In the "FormEvents_Loading" method event handler I have some code that needs to run each time the form is opened.   I recycle the App Pool and open the form the code runs perfectly, but if I close and try to re-open the form the code is not run at all.  I can then recycle the App Pool again and on the next load the code executes just fine.   The code that is supposed to be run is a very simple statement to set a field value, so I don't think it is interfering.

Does anyone know what this might be?


Adding client event handlers to an ASP.NET controls programmatically



I want to add client event handlers to ASP.NET controls (For example: GridView/Button ) programmatically to ASP.NET.

I am aware of "onclick" event handler, so my code would be

GridView1.Attributes.Add("onclick", "JSGridViewFunction()");

Button1.Attributes.Add("onclick", "JSButtonFunction()");

I want to know what are all the event handlers that are available for (or that can be added to)  ASP.NET controls.

For example, I want to add "onsort" event handler to ASP.NET GridView control.

But the following code fails

GridView1.Attributes.Add("onsort", "JSGridViewFunction()");

Please help.


Quick Note: Add Event Receivers to SharePoint 2010 Lists

In this exercise, you add an event receiver to a custom Microsoft SharePoint 2010 list that is triggered when you attempt to delete an item in the list.

Event Handlers don't execute after restart from checkpoint

Hi,   I have OnPreExecute and OnPostExecute Event Handlers on the Package level for custom logging.  They fire on pre/post exec for every task in the package as I wish.  They don't fire however when the package is restarted from a checkfile.  FailPackageOnFailure is set to false for the event handlers and every task within them.  I thought this was how to prevent the task from being written to checkfile and in turn prevent the task from failing to execute after restart. Is it true there are no workarounds for this behaviour? Thanks, Josh

synchronous and asynchronous event handlers sharepoint 2007

Any one help me out to understand synchronous and asynchronous event handlers sharepoint 2007...why we r going to use..Event Handlers...

List Event Receivers firing for all custom lists

Hello, I have a site with two custom lists, and I have created an EventReceiver class to handle the ItemAdded event for custom lists. I have modified the EventReceiver's Elements.xml file to only handle items added to one of the custom lists instead of all custom lists, by changing: <Receivers ListTemplateId="100"> to <Receivers ListUrl="/Lists/MyCustomList">   however, when debugging, the ItemAdded method is being fired when an item is added in both custom lists. I have had to work around this by checking within the ItemAdded method for the list that fired the event:        public override void ItemAdded(SPItemEventProperties properties)        {            base.ItemAdded(properties);            if (properties.ListTitle.Equals("My Custom List")) { ... } I thought the ListUrl attribute of the Receivers element specifies the event to only fire for the specific list with that url? (see http://msdn.microsoft.com/en-us/library/ms431081.aspx). Is there somewhere else I should be checking?   Thanks

C# Problem with multiple SerialDataRecieved event handlers

Hi all, I'm relatively new to C# and have no formal programming experience so apologies in advance if the way I do things are bad practice etc - I generally implement things in a way which seems logical to me! As a small project I'm making a toy car which can drive itself, the problem I've currently got is reading data from two serial port devices at once. The way I tend to work is to write smaller applications to do one function and get that working before integrating it into a larger application which will pull all the functions together. I've written a "Serial_Port_Communications" class which allows you to pass a serial port object into it and then perform some typical functions: open a port, close it, read data, write data etc. Thats common code across all of my serial devices (they all need to do the same operation so why re-write it?) Then for each device I've got a class which handles the operations and data specific to it: GPS & Compass. Each of those two create instances of the Serial_Port_Communications class. In the GPS & Compass classes, they each have a SerialPort object which has an eventhandler assigned to it for when data is received e.g GPS.datareceived += & Compass.datareceived +=... They each work flawlessly when they run as the mini-applications i.e. I can Parse the GPS data that is received and I can read

System.Runtime.InteropServices.COMException with Event Handlers

hi,           i have written an ItemDeleting Event handler for a document library which holds images. the itemdeleting eventhandler works fine and displays the  errormessage on sharepoint error page when properties.cancel=true and properties.ErrorMessage="This Image is still being used in Announcements. Cannot Delete. ". this works fine when i delete from the doclibrary itself. when i delete the images in the document library from the ImageManger Tool of RadEditor it throws the com exception as follows instead of the sharepoint error page Server Error in '/' Application. -------------------------------------------------------------------------------- This Image is still being used in Announcements. Cannot Delete. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Runtime.InteropServices.COMException: This Image is still being used in Announcements. Cannot Delete. can anyone suggest, how to reslove this issue.? i have the screenshots,which would better explain but i dont know how to paste images into this forum? kindly let me know how to upload images to this forums also. thank you all

Using wsp for event handlers

Hi, I am using the WSP builder. After building the application in the development server, i got the filename.wsp under the visual studio projects in the solution folder. I am not sure of deploying the wsp file into the production server. Could someone guide me in installing and activating the event handlers. Also, when the event handler item was added, it showed ItemAdded and events like that, but it was not showing ItemDeleted event, by default. Is it possible to have ItemAdded and ItemDeleted events in the same eventhandler class? In the elements.xml file, there is a Type element. what is it used for. I have given it as < Type>ItemAdded</Type>, even though my class file has itemadded and itemdeleted event. Is this correct? Thank you

Is it possible for a sharepoint VIEW to aggregate multiple TASK LISTS?


I have a few TASK LISTS, each with identical structure, that can't be combined initially, based on the groups that control the task lists.  ALL Task Lists reside on the same SITE.  I would like to find a way to "UNION JOIN" multiple task lists under a single Tasks List VIEW, if that can be done.  Alternately, is there a WEB PART that can do this?

Is there a way to merge multiple similar-structured task lists within a single site - and if so, how would it be done?

How to get the Task/Components Source Creation Name at Event Handler level


My SSIS Package has Task1 and Task2, there is an Event Handler attached at Package level OnPreExecute event.


Events are captured fine on OnPreExecution of Package, Task1 and Task2 but

I want to capture the Source Creation Name at Event Handler level…I have only variables like SourceID, SourceName, SourceParentGUID and Creation Name at Event level... not the Source Creation Name.


Is there anyway we can capture the Task/Components Source Creation Name at Event Handler level??



WQL - WMI Event Watcher Task - Access Denied


I have a WMI Event Watcher Task for watching a directory on the local machine.
The query is

SELECT * FROM __instancecreationevent WITHIN 10 WHERE TargetInstance ISA 'Cim_DirectoryContainsFile' AND TargetInstance.GroupComponent='Win32_Directory.Name=\"C:\\\\\"'


We are using SQL Server 2008 on Windows 2008 R2 64-bit machine.

This package works fine when run from an account in the Administrators group.

If the account running the package is not in the administrator's group, the package fails with


   Code: 0xC0029261
   Source: WMI Event Watch directory for drop file WMI Event Watcher Task
   Description: Watching for the Wql query caused the following system exception: "Access denied". Check the query for errors or WMI connection for access rights/permissions.


We turned autditing on for the directory in question and it appears that the package hasn't event attempted to access the directory. I also tried giving d

workflow pause and event handlers


Hi All,

No matter what I do, if I pause my workflow, and then update a list item after the pause is over, my event handler on update list item will not fire, though the item has been updated! No matter I use Set Field or Update Field, same result. If I do not use pause, it will fire. 

I need pause to give user sometime to react, if he doesnt then remind him. Can use Wait Until Due Date etc., but why not pause. (Not sure, if event firing will work with Wait Until Due Date even.)

Any ideas will be much appreciated.


Rehman Gul

Application Resource and Event Handlers


I found a topic quite similar to my problem but ton the same I think. So I decided to post anyway

The thing is I have a CellTemplate Application Resource that I want to use in DataGrid TemplateColumns used for refresh.

The problem is that in the DataTemplate I have an image and I want to be able to set the MouseLeftButtonUp in the WPF Window or Control that I use the CellTemplate Resource. I made various attempts to some-how "overload" the resource in the Window but with no result. Can someone please enlighten me?

There follows the code snipet from the <Application.Resources> section

<DataTemplate x:Key="refreshColumnTemplate">
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
 <Image HorizontalAlignment="Stretch" Name="image3" Stretch="UniformToFill" VerticalAlignment="Stretch" Source="..."
  Width="22" Height="22" Cursor="Hand" MouseLeftButtonUp="Should I put something here?"/>

in the WPF Window the usage of the data template looks like this:

<DataGridTemplateColumn ... CellEditingTemplate="{StaticResource refreshColumnTemplate}"
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend