I have an event receiver using the VS2010 template for SharePoint 2010 and I have coded it the same way I have done many times. This time, though, it is not firing at all. It is attached to the list via the ListUrl attribute and I have confirmed that it is attached to the list by using PowerShell
$web = Get-SPWeb http://sp2010/Site/
$list = $web.Lists["List Name"]
I have tried tracing, I have tried writing to a custom event log, I have tried SandBox, I have tried Farm Solutions, I have tried setting the feature to not be activated when it is deployed and manually activating it, and when I debug in Visual Studio I get the warning that the breakpoints will never be hit. Any suggestons? At this point I am just going to try a new project.
Edit: I created a new project, as a SandBox solution and did not change anything except the ListTemplateId I set to 107. I tried both a custom and the default task list and the event receiver did not fire for item deleting events or any other.