BDC application definition file import error : cannot have more than 255 Parameters for a method.

  Recently got a customer who had created a BDC application definition file but when trying to import it, he is getting error: The following error occurred: cannot have more than 255 Parameters for a method .Error was encountered at or just before Line: ‘1414’ and Position ’14’. We checked and found that none of…

0

Operation requires user to be Service Application Administrator to be able to execute the code

Recently got a customer who was having a very simple code in an application page (in _layouts folder) to find the crawled properties, which are mapped to a managed property in Search Service Application (in SharePoint 2010) as given below: 1: SPServiceContext context = SPServiceContext.GetContext(SPServiceApplicationProxyGroup.Default, SPSiteSubscriptionIdentifier.Default); 2: SearchServiceApplicationProxy searchProxy = context.GetDefaultProxy(typeof(SearchServiceApplicationProxy)) as SearchServiceApplicationProxy; 3: SearchServiceApplicationInfo…

2

Updating HTMLProp iFilter sample to work with MOSS 2007

What happened? Customer was using MOSS 2007 SP2 and was indexing a lot of content from external sites. These sites had date as information in the HTML meta fields. Customer wanted them to be indexed as Date/Time field in MOSS so that they can be queried like a Date rather than string. Customer is trying…

0

Using custom OpenDocuments control to open custom file types in SharePoint

A customer was having a number of PDF files uploaded into their SharePoint sites. They were using Adobe Acrobat to edit and create PDF files. What customer wanted was, to be able to edit the PDF files directly from SharePoint by getting “Edit with Adobe Acrobat” option in the ECB menu. We edited the DOCICON.xml…

19

Code fails with “A Web Part or Web Form Control on this Page cannot be displayed or imported. The type could not be found or it is not registered as safe”

One of my customer’s came up with a peculiar issue. They were having a number of custom web parts on their SharePoint site and everything was working great from the browser. But they had also created a timer job that enumerates web parts and it used to fail with these errors: “A Web Part or…

1

How to Create new application pool and change App Pool of SharePoint Website

In OOTB SharePoint, you do not have anything which will allow you to create new application pools in IIS and assign them to applications. Also nothing was found in STSADM. If the application pool does not exist you can create it using the following code snippet: 1: SPFarm farm = SPFarm.Local; 2: SPWebService service =…

2

Incoming Email settings link disappears from document library settings

One of my customer had created a custom document library deriving from OOTB document library. They are able to create their document library from custom list definition properly without any issues. But when in the document library created using custom list definition, if you go to list settings page, it does not show "Incoming Email…

2

List Field added using InfoPath does not filter on [Me]

A Customer had created a custom InfoPath form to add a new item in the list. It gets added, but when he is trying to filter it using the field value =[Me], the filter does not work and all the items are shown to everyone. Basically they are pulling in the items from User Information…

0

Alerts not moved when moving sites

A friend on mine recently came to me asking for a solution. They had an old site which was being used by a lot of people, then they decided to move it. As they did not had any kind of custom solutions or any other kind of customizations, STSADM export and import seemed to the…

2

Control a Windows Service from SharePoint Central Admin site

You are a very good developer and have created a great windows service that works like a charm and your CEO likes the functionality and would love to have your SharePoint Administrator control it from the SharePoint Central Administration Site !!!! What a lovely scenario 🙂 But what also is interesting in this is, that…

0