K2 – The base type ’SourceCode.SharePoint.ProcessPortal.UI.PortalWebPartPage’ is not allowed for this page. The type is not registered as safe.

By peter.stilgoe









When creating a a process portal or trying to access certain sections of a process portal in K2 Blackpearl or Blackpoint & you get the following error:

“Parser Error Message: The base type ’SourceCode.SharePoint.ProcessPortal.UI.PortalWebPartPage’ is not allowed for this page. The type is not registered as safe.

Source Error:

Assembly Name=”SourceCode.SharePoint.ProcessPortal, Version=4.0.0.0, Culture=neutral, PublicKeyToken=16a2c5aaaa1b130d

Page Language=”C#” MasterPageFile=”~masterurl/default.master” Inherits=”SourceCode.SharePoint.ProcessPortal.UI.PortalWebPartPage

Register TagPrefix=”SharePoint” Namespace=”Microsoft.SharePoint.WebControls

/k2/default.aspx Line: 3

Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927″

Check your web.config & if the below lines dont exist add them & your problem should be fixed:


<SafeControl Assembly="SourceCode.SharePoint.ProcessPortal, Version=4.0.0.0, Culture=neutral, PublicKeyToken=16a2c5aaaa1b130d" Namespace="SourceCode.SharePoint.ProcessPortal.UI" TypeName="*" Safe="True" SafeAgainstScript="True" /> 

<SafeControl Assembly="SourceCode.SharePoint.ProcessPortal, Version=4.0.0.0, Culture=neutral, PublicKeyToken=16a2c5aaaa1b130d" Namespace="SourceCode.SharePoint.ApplicationPages" TypeName="*" Safe="True" SafeAgainstScript="True" />




Share

Leggi tutto

K2 Error: The solution has not been opened. The following error occurred on opening: Value cannot be null.

By peter.stilgoe









When in K2 Blackpoint or K2 Blackpearl you are using a Infopath Integration Wizard and when you try to specify the Infopath form template you get the error:

“The solution has not been opened. The following error occurred on opening: Value cannot be null.
Parameter name: adapter”

Delete your submit data connection in your Infopath form, you should then be able to add your Infopath form template to your K2 process with no error.




Share

Leggi tutto

K2 Blackpoint/Blackpearl In a one way trust environment – Error: MSMQ A queue with the same path name already exists

By peter.stilgoe









If youre K2 Blackpoint/Blackpearl in a one way trust environment & you get the following error when starting the K2Server Service:

Event ID 7030 “A queue with the same path name already exists”

Modify the following bold portions in these two configuration files in C:\Program Files\K2 blackpearl-blackpoint\Host Server\Bin folder.

SourceCode.EventBus.ClientRecorder.dll.config

#msmqpath#K2SERVER\Private$\EventBus#msmqpath#

SourceCode.EventBus.Server.config

#msmqpath#K2SERVER\Private$\EventBus#msmqpath#

#msmqerrorpath#K2SERVER\Private$\EventBus Error#msmqerrorpath#

Source: K2 Blackpoint Blackpearl using a one way trust

Share

Leggi tutto

K2 Blackpoint/Blackpearl In a one way trust environment – Error: Authentication required for session

By peter.stilgoe









If you are trying to get K2 Blackpoint or K2 Blackpearl working in a one way trust environment using K2′s pass thru authentication there is a blog post here on how to get it to work:

Working with a one-way trust using K2 4.5 with KB001290

I followed the instructions but every time I tried to access the settings page in the K2 process portal (/_layouts/K2/PPManagementConsole.aspx) I would get the error:

Authentication required for session xxxxxxxxxxxxxxxxxxxx

This was because the account(s) running my Sharepoint app pool(s) also need to be in the trusted domain along with the K2server service account.

Hopefully this may help someone if they have similar problems!

Share

Leggi tutto

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