Solved

WSS 3.0 Custom Event Reciever - Could not load type

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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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…
For SharePoint sites, particularly public-facing ones, there are times when adding JavaScript, Meta Tags, CSS Styles or other content to the page <head> section is more practical than modifying master pages.  For instance, you could add the jQuery l…
This video discusses moving either the default database or any database to a new volume.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

762 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now