Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I am trying to add a Event Receiver to a list that is dynamically created (by code). So i cannot add a event receiver on the list directly.

I found a way to attach a Event Receiver to the list by code.

http://ybbest.wordpress.com/2012/03/17/how-to-add-event-receiver-to-sharepoint2010-content-type-programmatically/

Now i just need to know how can i get the Assembly name of the EventReceiver and its public token key.

I tried running the SN.EXE tool giving it the path where the Event Receiver is in the solution but i get an error.

How can i get the Assembly name of the Event Receiver.

Thanks ! Happy Holidays :D

share|improve this question
    
Assembly Name is usually included in the Elements.xml file... –  Arsalan Adam Khatri Dec 17 '12 at 15:09
    
if you see $SharePoint.Project.AssemblyFullName$ instead of assembly information... Then you should open the wsp generated by solution in Zip [Winzip, 7Zip]... See the Elements.xml file in that! –  Arsalan Adam Khatri Dec 17 '12 at 15:18
    
Let me check it out. If it works you can post as an answer. –  Dr.Denis McCracleJizz Dec 17 '12 at 15:27
    
Worked, thanks, post as a answer and i'll fag it as response. –  Dr.Denis McCracleJizz Dec 17 '12 at 16:20

1 Answer 1

up vote 1 down vote accepted

Assembly Name is usually included in the Elements.xml file...

If you see $SharePoint.Project.AssemblyFullName$ instead of assembly information... Then you should open the wsp generated by solution in Zip [Winzip, 7Zip]... See the Elements.xml file in that!

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.