Tuesday, February 8, 2011

Adobe integrates Acrobat Reader X with SharePoint

Adobe's X series PDF editor and reader Acrobat X and Reader X now tightly integrates with SharePoint. We need to provide the OpenControl key in the DocIcon.xml and clients should use Acrobat X or Reader X to leverage.

Now it provides additional options like Edit Document, Check-in,Check out,Discard check out for PDF documents.

If I say Edit Document, PDF automatically opens the document in Reader X and also asks whether I want to check out

It also provides a UI cue for the checked out document too


Once the documents are checked out in MS Office suit, the document library page automatically refreshes to show the checked out icon but here that refresh is not happening.

How to configure SharePoint for this ?
  • You need to add the following lines in DocIcon.xml 
    • You can find DocIcon.xml in C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\XML
AdobePDF.png
  • Right click and save the above Acrobat PDF icon to your machine in the name of AdobePDF.png and copy it to folder C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\IMAGES
  • Now do an IISRESET and let IIS load these new resources.
  • Repeat all the steps in all of your web front end servers
All these steps remain same for MOSS 2007, just change the \14\Template\XML to 12\Template\XML while doing modifications to DocIcon.xml and copying the AdobePDF.png file

Monday, February 7, 2011

SharePoint 2010 Approval workflow, a marvel

Way back our team built a multi stage approval workflow with serial and parallel flow options for MOSS 2007. Recently stumbled upon the SharePoint 2010 approval workflow which eventually showcases all these functionalities right out of the box. This is one of the huge improvement in SharePoint 2010

Lets see what are the configurable parameters it allows us to configure

Approvers
Accepts multiple users who are in the capacity of approving the content ,seperated by semicolons

Order:
Determines in which order the execution goes whether serial or parallel, technically in which order the tasks created to the Approvers

Flow of a Serial workflow


Flow of a Parallel workflow

Expand Groups
If checked and groups entered in approvers section will be expanded and tasks will be created for individual users else only a single task will be created for the whole group. Any user from the group can approve or reject

Request
A comment text which will be sent to the approver via email and approval screen also

Due Date for all Tasks
Final date on which all approvals should be completed

Duration per task
Amount of time for each task is due, works along with Duration Units

Duration Units
You can choose days,months or years in this drop down, works along with Duration per task

CC
Want to keep an additional person in approval loop, this is the place to go

End on First Rejection
Any approver rejects the document, workflow gets stopped and document rejected

End on Document Change
Some author changes the original document while the approval in progress, now the whole workflow gets terminated if the original is modified.

Enable Content Approval
Changes the content approval status of the library based on workflow approval

Microsoft Tech Ed 2011 India March 23-25

Microsoft Tech.ed in Bangalore, for more information and registration
http://www.microsoft.com/india/teched2011/

Sunday, January 16, 2011

SQL server at xxx has an unsupported version 10.0.2531.0, SharePoint PSConfig error

While I was preparing a bonsai SharePoint 2010 web farm with Sql Server 2008 Enterprise database in my Dell Studio 1555. As I did numerous standalone SharePoint 2010 deployment for development activity on Windows Server 2008/R2/Win 7 with Sql Server 2008 express + SP1, I used to have the pre-requisites handy in my hard disk to build multiple virtual hard disks.
After building and networked the domain controller and the enterprise database server, executed the SharePoint 2010 installer and ran the PSConfig wizard on designated app server image. While connecting to the database server, wizard throws an error
---------------------------
SharePoint Products Configuration Wizard
---------------------------
SQL server at windb\dbsvr2010 has an unsupported version 10.0.2531.0. Please refer to "http://go.microsoft.com/fwlink/?LinkId=165761" for information on the minimum required SQL Server versions and how to download them.
---------------------------
OK   
---------------------------
I never expected this behavior ,went back to my standalone SharePoint installation and verified the database server. It says 10.0.2531.0 and running happily.
Went back to MSDN Hardware and Software requirement, there's a different standard for Sql Server 2008 Express(standalone) and Sql Server 2008 Enterprise(Farm installation). 
If you are gonna install Sql Server Express 2008 as your data store you are good enough to go with only Sql Server SP 1 (10.0.2531.0) but if you are preparing a web farm and proceeding for Non-Express database then you should also install the Cumulative update 2(10.0.2714) or CU5 (Installing CU3 or CU4 is not recommended)
Now the PSConfig wizard is happy and configures my web farm successfully.

Friday, January 7, 2011

Expose SharePoint 2010 Central Administration out of the job server

We tried to access the central administration of a Test server(Windows 2008 R2, IIS 7.5) from a client machine by adding proper host entries and providing the right port number and we were able to access the central administration. But soon we realized that the hyperlinks end up in a ASP.NET authorization error.

After tweaking the following authorization settings IIS 7.5 admin console, we were able to expose the links

Open inetmgr and select ASP.NET Authorization


Expand the central administration node and Select the _admin node and you can see a "Deny" rule, remove the deny rule and add a "Allow" rule



Repeat the same for _vti_adm node


Do an IISReset and good to go, 

Even after this some buttons from the Ribbon were disable for e.g;,Create application, Extend application 

Switching off the User account control solves the issue, start -> search for UAC and do the following change

Instructions provided above relaxes the security on SharePoint Server and shouldn't be applied on test,stage or production servers.

 

Tuesday, January 4, 2011

Porting Sharepoint 2007 document library STP to SharePoint 2010

Recently read a post from Tom Belgium which speaks about porting SharePoint 2007 list templates to SharePoint 2010 and it worked just by replacing the product version and and repackage with makecab utility.

I faced a scenario to port a document library STP template including some documents.SharePoint packages the documents of the document library and manifest.xml as a single package.

Following are the steps to modify the STP file.
Rename the STP File to a CAB file and have a look at the contents
Create a new folder in c: drive say c:\Templates\, drag and drop all the contents from the cab file
Edit the Product version tag in Manifest.xml and save the file
Open a command prompt, navigate to the folder where we copied contents from CAB file and take the list of files in a txt/ddf file. Store this file within C:\Templates folder

Prepare the DDF file with the list of obtained file names, don't forget to give the cabinet file name in DDF file
Download the sample DDF file here


Execute Makecab utility to generate the CAB archive, you will see a C:\templates\Package folder and within that folder the STP will be available

This is the new STP file which will work in SharePoint 2010 edition.

Friday, December 24, 2010

Rename a SharePoint 2010 standalone server

To rename a SharePoint 2010 server MSFT recommends using the power shell cmdlet with a brief article. Unfortunately in my case the power shell throws an "object reference" exception which pushed me to explore my good old friend STSADM in 14 hive.

Rename the SharePoint 2010 server using STSADM

stsadm.exe -o renameserver  -oldservername -newservername

Rename the Windows Server 2008 R2

Computer->Properties->Change Settings->Change-> Provide the new Server name and restart the machine

Update Farm credentials using STSADM
stsadm.exe -o updatefarmcredentials  -identitytype configurableid  -userlogin          -password

 Update AAM settings for Central Administration
  • Open central administration, select Application Management in the left pane
  • Select configure Alternate access mappings under Web applications setting
  • Filter the view by "Central Administration" and modify the internal Url to reflect the new Server Name.
If you have created any other web applications then modify the alternate access mapping settings for those URL's

Do an IISRESET and good to go.