Wednesday, November 2, 2011

New Framework K2

You can configure K2 to support .net framework 4.0 by doing the tollowing:

Modifying the "K2HostServer.config" file located in c:\program files\k2blackpearl\hostserver\bin folder.
Add the following key to the section of the K2HostServer.config file:

add key="netfxversion" value="v4.0.30319"
Restart K2HostServer.exe
a. You will be running in .NET 4 host, but will still execute .NET 3.5 code.
b. Although you can utilize .NET 4 based code constructs and references, you will not be able to use WF4 activities at this time

Ref: http://www.k2underground.com/forums/t/13211.aspx

Using the SQL Service Broker

http://www.k2underground.com/blogs/johnny/archive/2010/08/04/k2-4-5-tip-of-the-day-using-the-sql-service-broker.aspx

http://www.astaticstate.com/2007/11/create-custom-blackpearl-smartobject.html

Tuesday, November 1, 2011

Installing K2 Blackpoint / Blackpearl in a one way trust environment

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

Forms authentication in K2 workspace

In ‘C:\Program Files\K2 blackpearl\WorkSpace\Site\web.config’

Look for and change the following lines – in all cases change the top entry to the bottom entry (obviously without the comments and ‘OD:’).

Line 17:

<add key="authenticationMode" value="Windows" />

Line 20:

<add key="DefaultSecurityLabel" value="K2" />

Line 101:

<membership defaultProvider="AspNetActiveDirectoryMembershipProvider" userIsOnlineTimeWindow="1600">

Line 110:

<authentication mode="Windows">

Save and close – not sure whether an iisreset is necessary.

Open Workspace.

Please note that there are still issues that we are aware of with SQLUM which we are in the process of sorting out.

Please refer the below link

http://www.k2underground.com/forums/p/6424/19945.aspx