Solved

WSS 3.0 Custom Event Reciever - Could not load type

Posted on 2013-02-05
2
519 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 500 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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

Microsoft SharePoint Foundation 2010 and Microsoft SharePoint Server 2010 do not offer the option to configure the location of the SharePoint diagnostic trace log files during installation.  This can, however, be configured through Central Administr…
When using a search centre, I'm going to show you how to configure Sharepoint's search to only return results from the current site collection. Very useful when using Office 365 with multiple site collections.

734 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