.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Sharepoint Custom Event Receiver Registration Issue

Posted By:      Posted Date: May 22, 2011    Points: 0   Category :C#

Hi Team,

I have developed two project for my custom event receiver for sharepoint 2007.
1) Project: by inheriting SPEventItemReceiver Class, Override ItemAdding and ItemUpdating Event.
-- Here I have signed this dll and copy that dll in GAC of Sharepoint Server.
-- Then, Reset the IIS server of Sharepoint Server.

2) Project: Console Application to Register this Custom Event Receiver Project.
But Here is an issue.

This Second Project (Console Application) is at my local system.  While Signed First Project dll, I have added in GAC. without register that dll from my second application i might not take in action.

So, Can anyone guide me how do i use second project which has following code snippet like....

SPSite currentSite = new SPSite("http://XXXXXXX:0000/XXXX/XXXXXX/");
SPWeb currentweb = currentSite.OpenWeb();
SPList currentlist = currentweb.Lists["My Todo"];
string a

View Complete Post

More Related Resource Links

After SharePoint 2007 upgrade to SharePoint 2010 issue with custom site(s)


With our 2007 site(s) we had a custom module (we developed) to swap out the application.master with our own master page which resembled the site default.master.  This worked great.

After the upgrade, out site's main pages looked fine however when navigating to the admin type pages (settings/viewlists etc.) pages the module stopped working.

1.) I have figured out something things with respect to what is going on but am still at a loss to how best resolve.  We want the layouts/admin pages to have the same master page as the main user pages.   I have read in 2010 this is now possible.  How can I achieve this?


2.) Currently, when navigating to the sites/settings page the site is using template/layouts/layoutsv3.master as the master page.  The settings.aspx page has DynamicMasterPageFile="~masterurl/default.master" .  It was my understanding that when DynamicMasterPageFile was set to default.master it would use the master page from the site.  So, with that said I am confused why it is using layoutsv3.master

any help would be appreciated



Error loading and running event receiver Microsoft.SharePoint.Workflow.SPWorkflowAutostartEventRecei


Hi all, i found the below error in event log. How can i fix this issue.

Event ID: 6875            Source: Windows SharePoint Services 3

Error loading and running event receiver Microsoft.SharePoint.Workflow.SPWorkflowAutostartEventReceiver in Microsoft.SharePoint, Version=, Culture=neutral, PublicKeyToken=71e9bce111e9429c. Additional information is below.

: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

Please help me out in this issue. Thanks in advance.


K2Blackpearl, Sharepoint, .Net

Custom Role Provider Issue In Sharepoint 2010



I have? migrated my existing wsp solution that contains working custom FBA membership and role providers to Sharepoint 2010. As stated in several migration or custom membership provider articles that I fround in Net for Sharepoint 2010, I followed the steps below:

  • Created my FBA login page under _layouts, I inherited it from FormsSignInPage.
  • Set authentication of the web application to Claims
  • Enabled forms based authentication for the application and set my custom provider names.
  • Added provider names to not only my application's web.config but also to central application web.config and securitytoken web service's web.config (which is located in [14 hive]\WebServices\Securitytoken).

The current issue I am having is as follows:

  • When user types in username and password and presses the login button in the FBA login page, yellow "screen of death" :) is displayed indicating: "The server was unable to process the request due to an internal error.  For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework 3.0 SDK documentati

SharePoint 2010 Event Receiver verifying Content Types inside Document Sets


I have a document library and document set is added as one of the content types. The user goes inside the document set and inside the document set, I have 2 different content types. Now my scenario is that, one of the content types - which is referred as Main Report should not be used twice. I mean, within the document set, only one document of Main Report content type should exist. How can we do this?


SharePoint Event REceivers and Custom Error Messages.

I have an ItemAdding Event Receiver, with the following code fragment

properties.ErrorMessage = string.Format("{0} is already registered for this program.",item["Attendee Name"].ToString()));

properties.Cancel = true;

properties.Status = SPEventReceiverStatus.CancelWithError;


despite of the custom error message being set, I receicve the following error.

Write Custom WebParts for SharePoint 2007

The popularity of SharePoint Portal Server 2003 led Microsoft to tightly integrate the next SharePoint version, Microsoft Office SharePoint Server (MOSS) 2007, with its ASP.NET 2.0 WebPart framework. This tight integration enables the ASP.NET and SharePoint developer to do a number of things that previously weren't possible

Writing Custom Web Parts for SharePoint 2007

As I mentioned in an earlier blog post, SharePoint 2007 is built on top of ASP.NET 2.0, which means you can now use ASP.NET 2.0 features (Forms Authentication, Master Pages, Membership, Site Navigation, New Data Controls, etc) when building SharePoint sites. This is true for both the new Windows SharePoint Services 3.0 version (which will be a free download) as well as Microsoft Office SharePoint Server 2007 (which costs money).

Office Space: Custom Field Types for SharePoint 2007


Custom field types provide a powerful way to define a reusable SharePoint column definitions.

Ted Pattison

MSDN Magazine May 2009

Office Space: Custom Auditing In SharePoint


Learn how to enable an auditing solution for Windows SharePoint Services (WSS) 3.0 with customized control pages in Microsoft Office SharePoint Server (MOSS) 2007.

Ted Pattison

MSDN Magazine September 2008

Custom Grid View Header - Grid view Row Created event vs Gridview row databound events ?


Hi Gurus ,

It happened to add an extra Gridveiw Header in row_databound event , It did worked fine on !Postback but disappered on Page.Postback . Quick google search guided me to move the event to Row_Created event and every thing is okay .

Can any expert post some pointers , differnces between grid row_created vs row_databount with some sample table data created dynamically  behaviour of both the events in !Postback and page.Postback .

Thanks a tonne in Advance and  any inputs will be valued and appreciated .

Custom controls and ViewState management issue



I want to know that when we create custom controls, then is there State Management through ViewState done automatically or we have to handle it explicitely ?Since i have created Custom Controls that is behaving as if it is not maintaining its state on PostBack.

How to add custom list entries to mysite's calendar in Sharepoint 2007 site?


I would like to know below things

(1) How to create MySite for one specific member with other or administrator's access?

(2) Scenario : Administrator have created one SP2007 site. now Administrator have created one calendar (Sample calendar). Administrator have added some entries in calendar. now one user entered in portal site ansd view the calendar and he click on MySite menu. so this sample calendar entries should enter in that user's mysite calendar. How this can be achieved?

Thanks in advance.
Regards, Praful Udade

Outlook 2010 / Sharepoint authenthication issue


Hi all,

I'm using Outlook 2010 on Windows 7 64bit.

My company uses a hosted Sharepoint server (I guess it's Sharepoint 2010). There's a team calendar, which I would like to connect to my Outlook 2010. Linking it to Outlook works fine until it tries to update the calendar with the Sharepoint server. I shows the following error:

Error (0x80070005) when running the task "SharePoint": "You are not authorized to view the SharePoint list (team calendar). Contact the administrator of SharePoint site. HTTP 401."

So this tells me, I'm not authorized to connect - which is quite clear because Outlook never asked my for any username or password.

Funny thing is when I try to add an internet calendar (Right mouse click on calendars, Add calendar, Internet calendar) and use the url of the sharepoint list, it asks me for username and password, but then fails to add the calendar, as it isn't a webcal (which is OK).

BUT: As Outlook at this moment has the username and password, the exisiting Sharepoint calendar synchronizes correctly. This works until Outlook is being restarted.

Does anyone have an idea why I'm not asked for any authentication? Maybe there's some setting I haven't found yet? It works with trying to add the webcal any time when I start Outlook, but t

Sharepoint Wiki Custom Workflow


Has anyone done custom workflows for a sharepoint Wiki page? 

The workflow I'm trying to do is, whenever a new wiki page is created I want a new Discussion page  to be created for that wiki page?

Any Help?

Issue with opening SharePoint library in Windows Explorer view

I am having trouble opening a document library in Windows Explorer view. The portal is MOSS 2007. I have installed Office 2007 and IE7 on my computer. The error that I get is
"Documents in this folder are not available. The folder may have been moved or deleted, or network problems may be preventing a connection to the server."

sharepoint 2007 indexing issue


when we do incremental crawl, the items in index start decreasing and the error count remains the same. so it is hard to find what is causing the index items to reduce. can anyone help please. i had to pause the active crawl because of this index item decrease.

I have checked the following:

1) there is no space issue

2) no credential issue

What I found a bit fishy is that:

1) in the log, i got ->

a)get REGKEY_FLTRDMN_MS_TO_IDLE, using default - _File:\office\source\search\search\gather\fltrdmn\fltrdaemon.cxx Line:323

b) Server Office Server Shared Services 6pls Medium Cache blocked for shared object '1dd1db1d-8a07-4e27-9249-b7d328818fa2' of type 'Microsoft.Office.Server.Search.Administration.SearchSharedApplication'

Please help.

Unable to search Custom User Property Created in User Profiles in SharePoint 2010


Hi ,

I have created a custom user property,and created metadata property and added mapping to it, still i m not able to Search in People,Please advise

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend