?
Solved

WSS 3.0 Custom Event Reciever - Could not load type

Posted on 2013-02-05
2
Medium Priority
?
526 Views
Last Modified: 2013-02-06
I am following this atricle for creating Custom Event Reciever. But get following error in the event viewer.

Could not load type 'CustomEventReciever.MyListEventReceiver1 ' from assembly 'CustomEventReciever, Version=1.0.0.0, Culture=neutral, PublicKeyToken=a5aefc93fbdd5509'.

1. I cretaed class library with CustomEventReciever name and class MyListEventReceiver1within it.

2. Signed relesed version of assembly CustomEventReciever.dll

3. Added assembly to GAC using "gacutil.exe -if CustomEventReciever.dll"
it is added to GAC successfully

4. then creted feature.xml and elements.xml files at C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\FEATURES\BindingToAListType
(Files are attached here)

But when I install and activate the feature I get the above error in event log and feature dose not work the way it should.

What can be the problem? I use VS Express 2010 so I dont have sharepoint extention for it.

Thank you very much!
elements.xml
feature.xml
0
Comment
Question by:SBSAdmin2008
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 7

Accepted Solution

by:
dhawalseth earned 2000 total points
ID: 38858994
Dear SBSAdmin,

The problem seems to be with the namespace declaration.

The elements.xml you provided, contains two different namespace for event receiver class. Here have a look:

<Class>CustomEventReciever.MyListEventReceiver1</Class>
and
<Class> CustomEventReciever.EventReceivers.MyListEventReceiver1 </Class>

Check and verify how you want to declare your namespace.

Create a uniform namespace and you should not receive this error anymore.

Enjoy!!....
0
 

Author Closing Comment

by:SBSAdmin2008
ID: 38859395
It worked!...Thank you very much!
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I recently came across an issue with a MOSS 2007 deployment where access into some sub-sites were denied, even for the MOSS farm administrators. A bit of background to the setup of this MOSS farm; this was a three server setup, consisting of a fr…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question