I don't have problem with this one.
On step 6 it says "In the SimpleEventReceiver.cs", it's actually "EventReceiver1.cs" for me.
Here is my code:
/// List Item Events
public class EventReceiver1 : SPItemEventReceiver
/// An item is being added.
public override void ItemAdding(SPItemEventProperties properties)
string eventName = "Event List: ";
private void logAnAnnouncement(SPItemEventProperties properties,
string listTitle = properties.List.Title;
string mySiteURL = "http://win08spstudio/sites/test1";
DateTime currentDate = DateTime.Now;
using (SPSite mySiteCollection = new SPSite(mySiteURL))
using (SPWeb mySPSite = mySiteCollection.RootWeb)
SPList mySPList = mySPSite.Lists["TestList"];
SPListItem newListItem = mySPList.Items.Add();
newListItem["Title"] = eventName + listTitle + " @ " +