K2 Blackpoint K2 Blackpearl: Outputting the K2HostServer.exe console logging to a text file

By peter.stilgoe









When troubleshooting K2 Blackpoint / K2 Blackpearl you run the K2 Server in console mode, this then allows you to see everything thats going on as the K2 server is processing requests. However the text moves quickly so for further analysis you can output everything to a text file by running the K2HostServer.exe & piping it out to a file of your choice eg below:

C:\Program Files\K2 blackpearl\Host Server\Bin\K2HostServer.exe > c:\k2ServerLog.txt

The above will output everything to the root of C: into a file called k2ServerLog.txt

Share

Leggi tutto

K2 Blackpoint Blackpearl: Communication with the underlying transaction manager has failed

By peter.stilgoe









When deploying a new K2 Blackpoint or K2 Blackpearl you may get the following error:

(K2Project) SmartObject Server Exception: Could not publish SmartObject Definition to server: Error refreshing Service Instance ‘WorkflowReportingService’. Service returned : ‘Workflow Reporting SO Service: Communication with the underlying transaction manager has failed.

SmartObject: [Test - Process Instances]

If you do checking the following may help:

1) Specifically allow the Distributed Transaction Coordinator access through the Windows Firewall on the servers ‘allowed programs list’

2) The servers might have been cloned causing the MSDTC GUIDS to be duplicated. Remove and re-install the MSDTC components on the servers to fix this

3) Troubleshoot using DTCping & DTCtester (You need to make sure any firewalls allow the RPC port range through – http://support.microsoft.com/kb/154596)

4) In Component Services in Administrative Tools on your servers select the “No Authentication” option in the MSDTC configuration options.

Share

Leggi tutto

The K2 Setup Manager requires the logged on user to have domain user privileges to proceed

By peter.stilgoe









Installing K2 Blackpoint / Blackpearl in a one way trust environment you need to run the K2 server service account & application pool using an account from the ‘trusted’ domain. It is also recommended that you install K2 components using this account:

Note: It is recommended to install all K2 components using the K2 Service Account. Log on to the server as the K2 Service Account before installing.

However if you try you will get the following error:

“The K2 Setup Manager requires the logged on user to have domain user privileges to proceed”

As you are in a one way trust environment you cant easily give the required permissions (if at all) so the work around is –

“If you have a scenario where you have multiple domains, you can disable the Installer’s domain check. 1. Please browse to the directory where you are executing the installation files from. 2. Look for an configuration file called product.config. This file will reside in the installer directory. 3. Please edit the file and change the Domainusercheck from true to false as shown below. 4. Save the file and execute the setup.exe again.

setting key=”domainusercheck” value=”false”

source: K2underground

Share

Leggi tutto

How to restart the Sharepoint Timer Service (SPtimer)

By peter.stilgoe









SharePoint 2010: net stop SPTimerV4 / net start SPTimerV4

SharePoint 2007: net stop SPTimerV3 / net start SPTimerV3

SharePoint 2003: net stop SPTimer / net start SPTimer

Share

Leggi tutto

K2 Blackpoint Blackpearl not showing in Sharepoint Central Administration

By peter.stilgoe









If you are installing K2 Blackpoint / K2 Blackpearl in a distributed Sharepoint environment, you install K2 for Sharepoint on your web front ends but the K2 section still doesnt appear in Sharepoint Central Administration.

This is probably because you are hosting your central admin web app on a different server ie. an application server, if this is the case you need to install K2 on this server hosting your central admin as well as your Sharepoint Web Front End servers.

Share

Leggi tutto

Sharepoint 2010 CQWP: Make the CQWP portable by using tokens to point to the current site instead of static URL

By peter.stilgoe









Target the CQWP to the current site export the CQWP, Edit & replace the WebUrl with below:

<property name="WebUrl" type="string">~Site</property>

To target the CQWP for the Site Collection its currently located on:

<property name="WebUrl" type="string">~sitecollection</property>

Share

Leggi tutto

Sharepoint CQWP: XSL to link document icon to document and open in edit mode

By peter.stilgoe









The xsl code will display & make the document icon link to the sepcific document & open it in edit mode in your content query webpart:

<a href="{$SafeLinkUrl}" title="{@LinkToolTip}">
<xsl:if test="$ItemsHaveStreams = 'True'">
                   <xsl:attribute name="onclick">
                     <xsl:value-of select="@OnClickForWebRendering"/>
                   </xsl:attribute>
                 </xsl:if>
                 <xsl:if test="$ItemsHaveStreams != 'True' and @OpenInNewWindow = 'True'">
                   <xsl:attribute name="onclick">
                     <xsl:value-of disable-output-escaping="yes" select="$OnClickTargetAttribute"/>
                   </xsl:attribute>
                 </xsl:if> 

                 <img class="image" src="{@DocumentIconImageUrl}" title="" />
				 </a>




Share

Leggi tutto

Sharepoint CQWP How to format date from mm/dd/yyyy to UK dd/mm/yyyy

By peter.stilgoe









To format your Sharepoint content query webpart to UK date format do the following:

In your ItemStyle.xsl add the following line to your declarations:

xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime"

Then use the following line to display & format your date field in UK date format:

<xsl:value-of disable-output-escaping="no" select="ddwrt:FormatDate(string(@Modified), 2057, 5)" />

@Modified is your date field that you want to format




Share

Leggi tutto

Sharepoint 2010 One Way Trust users on the trusted domain do not return any search results

By peter.stilgoe









If you have you Sharepoint 2010 Farm setup in one domain & your users are in a seperate domain using a one way trust, when they perform a search they will not return any search results. This is because the account running the app pool for the search query service is running using a domain account on the trusting domain.

This account has no rights on the domain where the users sit to determine how the search results should be security trimmed etc. My initital thought was we need to run the search query app pool account using an account on the same domain as the users which does / will work.

However a better way is to run the following powershell command:

$searchapp.SetProperty("ForceClaimACLs",1)

now run a ‘Full Crawl’ and you users should now return search results as expected over the one way trust.

You can display you Search App details with the following command:

Get-SPEnterpriseSearchServiceApplication

Note: After performing the above search alerts will be broken. If you do need search alerts you can try running your search app pool with an account from the user domain.




Share

Leggi tutto

How to rename your web application in Sharepoint Services & MOSS

By peter.stilgoe









Syntax:
stsadm -o renameweb -url -newname

Example:
Stsadm -o renameweb -url http://localhost/oldname -newname newname

The above command will rename the web application from oldname to the newname.




Share

Leggi tutto

How to delete & create Sharepoint 2010 managed accounts using Powershell

By peter.stilgoe









To list your managed accounts use:

get-spmanagedaccount | ft username

(| ft username) returns the full text of the username

Then to delete the account use:

Remove-SPManagedAccount

press enter & enter the name of the managed account to delete

New-SPManagedAccount

create a new managed account

Set-SPManagedAccount

set a new password expiration & notication settings on a managed account




Share

Leggi tutto

Sharepoint Workflow Task Error: This task is currently locked by a running workflow and cannot be edited

By peter.stilgoe









Error in Event Log on Sharepoint Server: This task is currently locked by a running workflow and cannot be edited

When a workflow processes a task normally, the following sequence of events is expected to occur:

1. The process begins.

2. The workflow places a ‘lock’ on the task so nothing else can change the values while the workflow is processing.

3. The workflow processes the task.

4. The lock is released when the task processing is finished.

The error occurs because the lock never gets released, which usually occurs between steps 2 – 4. You can read more from this forum post.

http://connect.nintex.com/forums/thread/6503.aspx

Anyway I was getting this problem in a K2 Blackpoint / Blackpearl workflow which was preventing my workflow from moving to the next step. I resolved it by creating a new task list & pointing my K2 process to the new task list, no locking errors & the workflow runs fine now.

You may get similar errors with any workflow product ie. Nintex, Sharepoint Designer Workflow, C# Workflow etc, anything that uses the Sharepoint Workflow Engine & Sharepoint Task Lists.




Share

Leggi tutto

Sharepoint – How to setup a one way trust & required ports

By peter.stilgoe









1. Open Command Prompt.
2. Type: netdom trustTrustingDomainName/d:TrustedDomainName/add

TrustingDomainName – Specifies the DNS name (or NetBIOS name) of the trusting domain in the trust being created.

TrustedDomainName – Specifies the DNS name (or NetBIOS name) of the domain that will be trusted in the trust being created.

• To perform this procedure, you must be a member of the Domain Admins group or the Enterprise Admins group in Active Directory, or you must have been delegated the appropriate authority. As a security best practice, consider using Run as to perform this procedure. For more information, see Default local groups [http://technet2.microsoft.com/WindowsServer/en/library/f6e01e51-14ea-48f4-97fc-5288a9a4a9b11033.mspx], Default groups [http://technet2.microsoft.com/WindowsServer/en/library/1631acad-ef34-4f77-9c2e-94a62f8846cf1033.mspx], and Using Run as [http://technet2.microsoft.com/WindowsServer/en/library/8782f8ab-9538-4111-8a68-7bfd130c21c01033.mspx].
• To open a command prompt, click Start, point to All programs, point to Accessories, and then click Command prompt.
• This command-line method requires the Netdom Windows support tool. For information about installing Windows support tools, see Related Topics.
• Other switches can be used to assign a password or determine the direction of the trust. For example, to make a two-way, transitive trust, you can use the following syntax:
netdom trustTrustingDomainName/d:TrustedDomainName/add/twoway
• To view the complete syntax for this command, at a command prompt, type:
netdom trust | more

One Way trust validation

Inbound
————–

LDAP 389 UDP and TCP
MS DS 445 TCP
DCE Endpoint resolution – portmapper 135TCP
Netlogon fixed port

Using object / people picker

Outgoing
—————
LDAP 389 UDP and TCP
LSA fixed port
Kerberos 88 UDP
DCE endpoint 135 TCP

Netlogon to external forest with NTLM

Outgoing
————

DCE endpoint 135 TCP
netlogon fixed port




Share

Leggi tutto