Solved

WSS 3.0 Custom Event Reciever - Could not load type

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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

Suggested Solutions

Work Over Net is a new and very powerful collaboration product. With its new easy interface it is becoming very competitive to other similar products like webex and office interactive. WON 2010 have the standard business tools needed for multi-offic…
The vision: A MegaMenu for a SharePoint portal home page The mission: Make it easy to maintain. Allow rich content and sub headers as well as standard links. Factor in frequent changes without involving developers or a lengthy Dev/Test/Prod rel…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

820 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