Monday, June 22, 2009

Publishing Template(Export and Import) Problem

This is a problem i have been having..
scenario:
i created a site using the publishing site with workflow as the site template. We then exported this site using stsadm.exe(export function) and then importing (stsadm.exe). The problem starts now as the publishing workflow that should be there by default is doing some rather strange things.
first of all if you edit a page and then "Submit for Approval", you don't get the start approval screen.
look below at the picture.








so the solution that worked for me was to recreate the workflow on the "Pages" document library using a new "Task" list and a new "Workflow History" list and when you submit a page for approval you should get the "Start Approval" screen.PROBLEM SOLVED!!!!!!!!

Monday, June 15, 2009

iFilter v6.0 and Sharepoint

We had a problem with setting up *.pdf documents to be indexed in Sharepoint.
Everything worked fine in our Staging machine and just did not want to index the .pdf documents in PROD.

So this worked for me ...
1. Remote into the indexing machine (sufficent privillages will be required )
2. Stop the IIS Admin Service (services=>IIS Admin Service)
3. Run the setup for the iFilterv6.0(http://www.adobe.com/support/downloads/thankyou.jsp?ftpID=2611&fileID=2457)
4. Start the IIS Admin Service
5. Go to the following URL, http://www.adobe.com/misc/linking.html, and download the 17x17 icon image as “icpdf.gif”.
6. Go to every(assume more than 1 WFE) Web Front End Server, copy the image to the following location: "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\Template\Images".
Then go to C:\Program Files\Common Files\Microsoft Shared\Web server extensions\12\Template\Xml\ and open DOCICON.XML by adding the following entry

7. Now go to Central Admin site => your SSP => then click on Search Settings=>Click "File Types" =>then add "pdf" then click "OK" .
8. Stop and then start the Windows SharePoint Services Search service. To do this, follow these steps:a. Click Start, click Run, type cmd, and then click OK.
b. Stop the Windows SharePoint Services Search service. To do this, type net stop spsearch at the command prompt, and then press ENTER.
c. Start the Windows SharePoint Services Search service. To do this, type net start spsearch at the command prompt, and then press ENTER.
d. Type exit to exit the command prompt.
9. Add the following registry entry, and then set the registry entry value to pdf:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\12.0\Search\Applications\\Gather\Search\Extensions\ExtensionList\38
a. To do this, follow these steps: a. Click Start, click Run, type regedit, and then click OK.
b. Locate and then click the following registry subkey:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\12.0\Search\Applications\GUID\Gather\Search\Extensions\ExtensionList
c. On the Edit menu, point to New, and then click String Value.
d. Type 38, and then press ENTER.
e. Right-click the registry entry that you created, and then click Modify.
f. In the Value data box, type pdf, and then click OK.
. Verify that the following two registry subkeys are present and that they contain the appropriate values.
Note these registry subkeys and the values that they contain are created when you installed the Adobe PDF IFilter on the server.
• HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\12.0\Search\Setup\ContentIndexCommon\Filters\Extension\.pdf
This registry subkey must contain the following registry entry:• Name: Default
Type: REG_MULTI_SZ
Data: {4C904448-74A9-11D0-AF6E-00C04FD8DC02}
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\12.0\Search\Setup\Filters\.pdf
This registry subkey must contain the following registry entries:
• Name: Default
Type: REG_SZ
Data: (value not set)
• Name: Extension
Type: REG_SZ
Data: pdf
• Name: FileTypeBucket
Type: REG_DWORD
Data: 0x00000001 (1)
• Name: MimeTypes
Type: REG_SZ
Data: application/pdf
10. If you already have a .pdf document on the site just edit one of its metadata properties so sharepoint knows that it should crawl it since its meta properties has changed.
11. do a full crawl on the content source(Central admin=>SSP=>Search Setting=>Content sources and crawl schedules=>click the drop down on the content source and then click "Start Full Crawl"
12. Wait till the crawl finishes and then search for the .pdf document.