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

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

Loading IFilter from Sharepoint Timerjob context fails silently

Posted By:      Posted Date: October 18, 2010    Points: 0   Category :SharePoint

We are having trouble using the IFilter ILoadFilter Interface within the context of a SharePoint Timer Job.

The code we have written works fine when executed within the SharePoint w3wp context. But when the same code is executed within the context of a SharePoint Timer Job the ILoadFilter function just returns NULL.

Does anyone has suggestions for loading IFilters within SharePoint?

Kind regards,
Joran Markx

Joran Markx DiVa BV (The Netherlands) Blog - http://blog.diva.nl Website - http://www.diva.nl

View Complete Post

More Related Resource Links

Creating Sites/Lists/List Items under Current User Context in SharePoint By Using SPUserToken

Usually we do this by performing the action under RunWithElevatedPrivileges method and updating the listitem using SPListItem.SystemUpdate() method (see here). but this approach has its own flaws like (RunWithElevatedPrivileges will run under system account, we cannot use SystemUpdate for SPSite,SPWeb,SPList, since it runs under system we will "CreatedBy" by as SystemAccount).

EF4/Linq Eager Loading with Include fails to populate all results

Hi, I'm trying out EF4 as part of a .Net 4.0 WCF service. The aim of the service is to return document data as an array of entity objects to any of our ASP.Net apps. The apps are still in .Net 2.0. Due to the nature of the solution I've disabled LazyLoading at context level. I started with this:var revQuery = from revs in context.DocRevision                         where (revs.ID == myIDVar)                         select revs;  Everything works ok, I receive the correct number of populated objects. However when I add an Include into my query to allow us to pickup fields from a related table that has a defined navigation only the first record is returned fully populated to a calling application:var revQuery = from revs in context.DocRevision.Include("StaffNames")                         where (revs.ID == myIDVar)                         select revs;  The array is the correct size but all elements after the first are blank, default placeholders. Its like using the Include has reverted to LazyLoading and I can't seem to kick it into line. Anyone else had this problem?

SharePoint configuration wizard fails at 9 th step after installation of KB961749 on MOSS2007 SP1 se

Hi,   System details: 2003 enterprise OS, 2005 SQL server, SharePoint 2007 SP1 with version. Now i m trying to install KB961749 (February 24, 2009 Cumulative Update), installation completed successfully after this while running SharePoint configuration wizard its failed at 9th (last step) in the wizard. Share point version also not updated after this. i tried to upgrade through psconfig command line also, same result. failed at 4th step. Logs gives below info: Not running in high contrast, so we will paint the background with our trademarked image 09/02/2010 14:21:24  11  ERR                      The B2B upgrader timer job failed. Resource retrieved id UpgradeTaskFailConfigSyncDisplayLabel is Failed to upgrade SharePoint Products and Technologies.  Task upgrade has failed with a PostSetupConfigurationTaskException An exception of type Microsoft.SharePoint.PostSetupConfiguration.PostSetupConfigurationTaskException was thrown.  Additional exception information: Failed to upgrade SharePoint Products and Technologies. Microsoft.SharePoint.PostSetupConfiguration.PostSetupConfigurationTaskException was thrown.  Additional exception information: Failed to upgrade SharePoint Products and Technologies. Microsoft.SharePoint.PostSetupConfigur

Why saving to SharePoint library fails from Office 2007 client?

I have test environment where I have successfully able to create Excel document with the client and publish it to the SharePoint 2010 sites. In the test environment I was using my personal Windows 7 workstations for Office 2007. When I repeat process in the customer environment, it fails. I'm using front-end Windows Server 2008 machine for Office 2007. I'm using admin account and machine is certaily in the domain. 1. Open Excel 2007 and modify it 2. Publish 3. Document Publish Server 4. Input http://intra I get error: This location cannot open with program Why the error? What do I miss? Is the Windows Server 2008 the problem?Kenny_I

SharePoint 2010 AD FS 2.0 Integration - login works then fails, looping back to the adfs server

Hello, I setup SharePoint 2010 Claims auth with AD FS 2.0 following this post: http://blogs.technet.com/b/speschka/archive/2010/07/30/configuring-sharepoint-2010-and-adfs-v2-end-to-end.aspx.  I have no access to the ADFS server, but I think they followed the steps as outlined.  If I do an iisreset (or just recycle the app pool of the SharePoint site) I can login successfully using the remote credentials.  Also I can under security in SharePoint search for and find users and roles from the remote ADFS server. If I close my browser, open a new browser and go to the site I am prompted to login again (this is fine).  I do, using the same credentials, and the login fails because I am redirected between the SP and ADFS servers until the ADFS server stops the redirecting.  I have been doing some digging and I found this post: http://blogs.technet.com/b/speschka/archive/2010/08/09/setting-the-login-token-expiration-correctly-for-sharepoint-2010-saml-claims-users.aspx, which describes the situation I have in point # 3 at the bottom.  I have tried setting the token time out as low as 1 second but this hasn't helped. I have also, just to see, tried setting all the other lifetime settings to 1 second - but no luck.  Because the initial login works I think the setup is correct, but something is maintaining some state that is causing the loop

Sharepoint 2010 configuration fails at step3 after a while

I submitted to another post that has a simular issue than be but not entirely the same. Below is my problem: All the pre-reqs for SP2010 installed good, the installation went well without any problems but when I start the configuration it fails after a while at step 3(Configuring the content db's). Two db's gets created. Sharepoint_Config and Sharepoint_AdminContent_[guid]. Below is the error in the log file after the config has failed. Task configdb has failed with an unknown exception 09/03/2010 17:33:12  9  ERR                          Exception: System.Runtime.InteropServices.COMException (0x80090016): Keyset does not exist (Exception from HRESULT: 0x80090016)    at Microsoft.Web.Administration.Interop.AppHostWritableAdminManager.CommitChanges()    at Microsoft.Web.Administration.Configuration.CommitChanges()    at Microsoft.Web.Administration.ConfigurationManager.CommitChanges()    at Microsoft.Web.Administration.ServerManager.CommitChanges()    at Microsoft.SharePoint.Administration.SPIisServerManager.CommitChanges(ApplyChanges applyChanges)    at Microsoft.SharePoint.Administration.SPIisProvisioningAssistant.ProvisionApplicationPool(String name, SecurityIdentifier sid, Strin

SharePoint 2010 Fails Installing On Step 5 Of The Configuration Wizard

Hello,I installed SharePoint Server 2010, and its installed properly, I installed SharePoint over Windows Server 2008 SP2 with the Standalone version (MSSQL Express) - when i run the products configuration wizard i get the following message:----------------------------------------------------------------------------------------------------------------------------------------------------------------- Failed to register SharePoint services. An exception of type System.TypeLoadException was thrown. Additional exception information: Could not load type 'Microsoft.Office.Server.Search.Administration.SearchWebServiceManagerService' from assembly 'Microsoft.Office.Server.Search, Version=, Culture=neutral, PublicKeyToken=71E9BCE111E9429C'. System.TypeLoadException: Could not load type 'Microsoft.Office.Server.Search.Administration.SearchWebServiceManagerService' from assembly 'Microsoft.Office.Server.Search, Version=, Culture=neutral, PublicKeyToken=71E9BCE111E9429C'. at System.RuntimeTypeHandle._GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, Boolean loadTypeFromPartialName) at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) at System.RuntimeType.PrivateGetType(String typeName, Boolean t

Full Farm Backup Fails on Windows Sharepoint Services Search Database

I am just now starting to us central administration to backup the entire sharepoint farm.  All content backups fine except for the Search Database.  In looking through the backup log, it appears that the search database may not exist.  How can I determine if the search database actually does exist and if it does not can it be recreated?

Sharepoint Product and Technologies Configuration Wizard fails at step 8 for sharepoint 2007

Hi All, I have upgraded moss 2007 with Service Pack 2 after successfully completion of installation automatic Configuration  started and it got succeed till step 7 when it reaches to step 8 after some time it get fails. Please help me to recover. Thanks in Advance. Mohammed

How to create and deploy custom IFilter for sharepoint using c#


Hi all,

I am planning to create custom custom IFilter for sharepoint using c# to index PDF and Image files in sharepoint. Can anyone tell me how can we create and deploy custome IFilter for sharepoint using c#.

I did lot of reasearch work in google for the steps to create and deploy IFilter but I didn't find any information regarding this.

Can anyone assist me regarding this

Context menu in sharepoint 2010

How to hide context menu for a list in sharepoint 2010

Installation of Sharepoint 2007 Service pack 2 fails on Step 8 of Sharepoint Configuration Wizard


Here's the deal:-

Our test environment consists of one SQL Server 2005 machine, 1 Domain Controller and 1 Windows 2008 R2 server with Sharepoint 2007 and Project 2007 installed.

We wanted to test the installation of Sharepoint 2007 Service Pack 2 in our test environment. I followed the instructions available from Technet to install both the WSS 3.0 SP2 and MOSS 2007 SP2 http://technet.microsoft.com/en-us/library/dd637740(office.12).aspx BUT the last part of the Sharepoint Configuration Wizard failed with the following error:-


SQL Database 'ProjectServer_Published' on SQL Server instance 'SPDatabaseServiceInstance'

not found. Additional error information from SQL

Server is included below.


Cannot open database "ProjectServer_Published" requested by the login.

The login failed.

Login failed for user 'domain\FarmAdmin'.

The weird thing is my database is called 'MTL_Project_Published'

So it looks like it's looking for the old project databases.

Has anyone encountered this issue before when installing the service pack 2 of Sharepoint 2007 in their environment?


I have tried all the other solutions posted on the Internet such as running the upgrade via the command prompt, cleari

How does RunWithElevatedPrivilages work out of SharePoint context?



I have next code:

SPSecurity.RunWithElevatedPrivileges(() => {
   SPWebApplicationCollection webApplicationCollection = SPWebService.ContentService.WebApplications;
   foreach (SPWebApplication webApplication in webApplicationCollection)
      foreach (SPSite site in webApplication.Sites)
         using (SPWeb rootWeb = site.RootWeb)
            Console.WriteLine(rootWeb.Title + "\t" + rootWeb.Url);                        

In case I run it in Console Application it works fine.

In case I put it into xml web service w

SharePoint 2010 in-place upgrade fails



I have tried the in-place upgrade in a test site and its fails. When I remove the SSP the upgrade was succesfull.

In the error log there is a backup device reference 'C:\DATA\slq_Backup\INT_SharedServices_DB_backup.dat'. This file is missing now. Maybe this is a previous config, but I can't remember it. In the SQL Server 2008 I have not found any backup device. We use third partly backup solution. I don't know where the corresponding backup file is configured.

Error log:

[psconfigui] [SPConfigurationDatabaseSequence2] [INFO] [2010.09.22. 12:12:55]: SPConfigurationDatabase Name=INT_ConfigDB
[psconfigui] [SPConfigurationDatabaseSequence2] [WARNING] [2010.09.22. 12:12:55]: Object with Id 3db7b513-5995-460e-8eee-c9e9bb67cc7f and class id 92e1ba91-03dc-4d85-8978-8c6224d84d5e could not be deserialized. Most likely its type is no longer a sub class of SPPersistedObject.
[psconfigui] [SPConfigurationDatabaseSequence2] [INFO] [2010.09.22. 12:12:57]: SPConfigurationDatabase Name=INT_ConfigDB
[psconfigui] [SPConfigurationDatabaseSequence2] [WARNING] [2010.09.22. 12:12:57]: Object with Id a7966ae0-4cea-464e-8076-d0b44a9acd38 and class id 92e1ba91-03dc-4d85-8978-8c6224d84d5e could not be deserialized. Most likely its type is no longer a sub class of SPPersistedObject.
[psconfigui] [SPConfigurationDatabaseSequence2] [IN

Trying to recreate Help Desk site in SharePoint 2010 fails with an error


The site template requires that the Feature {af6d9aec-7c38-4dda-997f-cc1ddbb87c92} be activated in the site collection.

Troubleshoot issues with Microsoft SharePoint Foundation.

Correlation ID: 1c60c31d-cf82-47f0-a065-3673b4e16ca6

Date and Time: 8/27/2010 7:54:24 AM

I looked up the GUID using http://blogs.msdn.com/b/mcsnoiwb/archive/2010/01/07/features-and-their-guid-s-in-sp2010.aspx as my reference.  However, I cannot for the life of me figure out how to add this feature to the site collection.  When I go to the top-level site and go to add site collection features Web Analytics Customize Reports functionality is not there.

Clearly there is something I'm missing but since Microsoft is not redoing the Fabulous 40 site templates, any help in getting the old sites to work in a sharepoint database attach migration will be greatly appreciated.


Michael Caplan

MOSS 2007 to SharePoint 2010 Upgrade Fails - Object with Id 57bdacb5-31fe-4f4c-bdb3-3caf048474bd and


Ok apart from deleting these Classes and Objects what else can be done. Any one know a way around. Just to help you find them if you have a similar error look in the Classes and Objects Tables in the Offending database listed in the error message. In this error message below it is SharePoint_Config. How I found them,  yes its like looking for a needle in a hey stack see this post, very handly sql query.

I have a copy of a VM I can create again so I am going to try deleting these and if this works I will Answer my own post. This of course is unsupported and purely a hack hence why I am posting searching for enlightenment. Of course I have other errors so this may merely negate the first one.



[psconfigui] [SPConfigurationDatabaseSequence2] [INFO] [9/30/2010 3:44:42 PM]: SPConfigurationDatabase Name=SharePoint_Config
[psconfigui] [SPConfigurationDatabaseSequence2] [WARNING] [9/30/2010 3:44:42 PM]: Object with Id 57bdacb5-31fe-4f4c-bdb3-3caf048474bd and class id 92e1ba91-03dc-4d85-8978-8c6224d84d5e could not be deserialized. Most likely its type is no longer a sub class of SPPersistedObject.
[OWSTIMER] [UserProfileApplicationSequence] [INFO] [9/30/20

MOSS 2007 to SharePoint 2010 Upgrade Fails - Exception: The user or group 'wsaarole:wsaa administra


Ok the top part of the error I have tracked down to some entries in the SharePoint_Config database (Classes, Objects, TimerRunningJobs) and since I have a VM I am going to study them and try deleting them probably, if it dies I will delete this VM and roll up another VM in my case its a timer job that I am guessing the farm can live without.

The other error further down is more of a concern to me which is the one I listed above. The Group exists and it is in the farm and appears to be healthy no errors in preugrade check or the like or in the Farm. When upgrading the show stopper for me is that the content databases will not upgrade (assuming they upgrade FBA I can configure) the chicken and egg issue for me is this is an FBA farm, so is it the case that b/c FBA is missing not configured yet on the other side of the upgrade in 2010 that these content dbs connected to FBA (by FBA users in the content dbs) will upgrade affter FBA is configured ( I haven't tried this yet sorting my error log one error at a time). The Particular content dbs with an issue are shared services and the main site collection db which includes my sites site collections also.

[psconfigui] [SPConfigurationDatabaseSequence2] [INFO] [9/30/2010 3:44:42 PM]: SPConfigurationDatabase Name=SharePoint_Config
[psconfigui] [SPConfigurationDatabaseSequence2] [WARNING] [9/

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