< class="prominent-subhead ">

Executing a web service based SmartObject from inside a View is slower than executing it from the SMO Tester Tool

This article was created in response to a support issue logged with K2. The content may include typographical errors and may be revised at any time without notice. This article is not considered official documentation for K2 software and is provided "as is" with no warranties.


When you open a Form or View in Runtime and execute any method on a SmartObject that pulls data from a web service, it will take about 9 seconds or longer. For example, when you use a Picker Control that retrieves values from a web service, or when transferring data from a SmartObject into a Data Field, etc.

When you use the SmartObject Services Tester Tool, then it will take 1 second or less.


This specific scenario happens in one environment but not in a different environment, which means there is a configuration difference.

Use tools like F12 Dev Tools in any browser or Fiddler to analyse the packets and their delay.

The general symptoms are that this takes a long time when executing from inside a web browser, but is very quick when executing from within the SmartObject Services Tester Tool.


1. Open the following config file in Notepad:

C:\Program Files (x86)\K2 blackpearl\Token Service\Bin\K2TokenService.exe.config

This location may be different for you if you installed K2 in a custom location

2. Make sure you add the Application Pool account for K2 SmartForms to that file, like the following:


   <clear />

   <add value="DOMAIN\K2SmartFormsApplicationPoolAccount" />


3. Save the file

4. Restart the K2 Claims to Windows Token Service

5. Restart the K2 Blackpearl Service

6. Restart IIS Service (IISRESET)

The execution time on a Form should be the same as on the SmartObjects Services Tester Tool.