This page has moved. You will be automatically redirected to its new location in 10 seconds. If you aren't forwarded to the new page, click here.

Search This Blog

Showing posts with label SharePoint. Show all posts
Showing posts with label SharePoint. Show all posts

Wednesday, February 17, 2010

The application-specific permission settings do not grant Local Activation permission for the COM Server application with CLSID {61738644-F196-11D0-9953-00C04FD919C1} to the user SID (S-1-5-21-573225893-205518295-0000000000-00000). This security permission can be modified using the Component Services administrative tool.

  • Search the GUID in HKCR registry..
  • 61738644-F196-11D0-9953-00C04FD919C1
  • The service name for this key is IIS WAMREG Admin Service
  • Load DCOMCNFG, browse to My Computer -> ” DCOM Config”
  • Go to the properties of IIS WAMREG
  • The permission missing was “Local Activation” permissions for the user .

 

http://www.cleverworkarounds.com/2007/10/25/dcom-fun-with-sharepoint/

Monday, January 25, 2010

Create a SharePoint workflow history entry

public void CreateWorkflowHistoryEntry(string Outcome, string Description, string OtherData)

{ SPWorkflow.CreateHistoryEvent(workflowProperties.Web, workflowProperties.WorkflowId, (int)SPWorkflowHistoryEventType.WorkflowComment, this.workflowProperties.OriginatorUser, new TimeSpan(1), Outcome, Description, OtherData);

}

http://www.sharepointbuzz.com/archive/2009/01/21/how-to-create-a-sharepoint-workflow-history-event.aspx

Thursday, January 14, 2010

"One or more field types are not installed properly. Go to the list settings page to delete these fields."

I received this error while using an SPQuery CAML query string. the problem was that I had renamed my Title column in the list to “Document Library Name” and in the SPQuery i was using

query.Query = "<Where><Eq><FieldRef Name='Document Library Name'/><Value Type='Text'>" + this.workflowProperties.List.Title  + "</Value></Eq></Where>";

after some research I found out that the internal name of the column was still ‘Title’ so i used

query.Query = "<Where><Eq><FieldRef Name='Title'/><Value Type='Text'>" + this.workflowProperties.List.Title  + "</Value></Eq></Where>";

and the error was gone :D

Tuesday, January 12, 2010

‘Access denied’ when deploying VS 2k8 Sharepoint workflow

(I couldnt get a resolution to this error but following is a workaround)

1. Create a directory in the features directory [C:\Program Files\Common Files\microsoft shared\Web Server Extensions\12\TEMPLATE\FEATURES] and drop both the feature.xml and workflow.xml files into the directory.
2. Install the feature on your farm, using the following command line statements
stsadm -o installfeature -name <<name>>
4. Activate the feature to a site collection
stsadm -o activatefeature –name <<name>> -url <<url>>
Replace <<name>> and <<url>> with the actual value

http://www.codeproject.com/KB/WF/sharepointworkflow.aspx?msg=2656569

***EDIT: Strange enough, I added System.Configuration reference in the project for some other purpose; and this error was gone :D

Tuesday, November 24, 2009

Cannot Find SharePoint Site or SharePoint Server Instance

This problem can occur when the workflow deployment process cannot open the SharePoint site.

Error Messages
  • SharePoint Server not available.

  • Cannot find a SharePoint server instance.

  • Cannot find the specified SharePoint site: <site URL>.

Resolution
  • Ensure that SharePoint Server is running.

  • In the Properties window, ensure that the site specified in the Target Site field is a valid SharePoint site.

  • Examine the SharePoint diagnostic log files. The default location of these log files is drive:\Program Files\Common Files\Microsoft Shared\web server extensions\12\LOGS. If you cannot find the log files at this location, refer to the diagnostic logging settings in the SharePoint Central Administration Tool. For more information, see the documentation for Office SharePoint Server 2007.

 

http://msdn.microsoft.com/en-us/library/ee231594(VS.100).aspx

Wednesday, November 4, 2009

Handling Lookup columns in CAML queries

if query returns all the records instead of only filtered ones:
try to do this: remove the <query></query> tags from C#

CAML Query Builder

http://www.u2u.be/Res/Tools/CamlQueryBuilder.aspx

User control web part

http://www.reflectionit.nl/SmartPart.aspx