event receiver not triggering for itemadded

I have a event receiver below that splits the filename up into parts and assigns them to the columns I added, Invoicemount, ExpenseType when a file is added. I did the following:

I upgraded to SPS2010 with July 2013 Service Pack.
Created a new document site with the 2 columns above, and the rest is set up as default.
Ensure the Event Receiver was activated for the site.
Checked out event viewer for errors (I even changed "Title" to "Titl" in the code below, yet I get no error that it couldn't find the column in event viewer (I have had that happen before))

It is almost like it is not being initiated when an item is added. What else can I look for?

using System;
using System.Security.Permissions;
using Microsoft.SharePoint;
using Microsoft.SharePoint.Security;
using Microsoft.SharePoint.Utilities;
using Microsoft.SharePoint.Workflow;

namespace splitname.EventReceiver1
    /// <summary>
    /// List Item Events
    /// </summary>
    public class EventReceiver1 : SPItemEventReceiver
       /// <summary>
       /// An item was added.
       /// </summary>
        public override void ItemAdded(SPItemEventProperties properties)
            string tempFileName = properties.ListItem["Name"].ToString();
            int fileExtPos = tempFileName.LastIndexOf(".");
            if (fileExtPos >= 0)
                tempFileName = tempFileName.Substring(0, fileExtPos);

            string[] fileInfoParts = tempFileName.Split('_');
            properties.ListItem["InvoiceAmount"] = fileInfoParts[0];
            properties.ListItem["ExpenseType"] = fileInfoParts[1];
            properties.ListItem["Title"] = properties.ListItem["Name"].ToString();


Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Rainer JeschorCommented:
have you restarted the Windows SharePoint Timer Service and ran an IISRESET?
If you enforce a coding error you should get it either in the event log or in the SharePoint ULS log (C:\Program Files\common files\microsoft shared\web server extensions\14\logs)
Can you verify the ULS log?
Can you verify using SharePoint Manager that the event receiver is attached to your library?


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
BKennedy2008Author Commented:
Hi Rainer,
This is an added help from when you helped me out before..Much appreciated. I reset the Sharepoint Timer Service, reset IIS, and the file does not split into parts and populate the columns. I am not seeing any errors in the current log other than reached its limit...

Weirdest thing is I took an event receiver before that worked, that I no longer needed that was working with the above SAME code except different Column headers, changed them to match the new site, and it works. But if I try and add a new one with the same code, it does not trigger.
BKennedy2008Author Commented:
The event receiver is in SharePoint Manager (Both of them), but I only have 1 activated at a time while testing
BKennedy2008Author Commented:
Here are 3 images, 1st one is not working, the second is, and the 3rd is the site
BKennedy2008Author Commented:
Rainer, I am an idiot. When creating the Event Receiver, I did not select the correct event receiver type that I wanted...I selected Document library, and it worked like a champ.
Thanks again
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SharePoint

From novice to tech pro — start learning today.