Welcome to K2 Underground Sign In | Join | Help
How to use the SmartObject .NET Data Provider on a Server that Does Not have K2 Installed on it

To use the SmartObjects with the .NET Data Provider, you need to register the following .NET DLLs in the GAC (Global Assembly Cache): 

-SourceCode.Data.SmartObjectsClient.dll
-SourceCode.Categories.Client.dll
-SourceCode.HostClientAPI.dll
-SourceCode.Framework.dll
-SourceCode.SmartObjects.Client.dll
-SourceCode.SmartObjects.Management.dll

You must also add the following entries to the machine.config:
(C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG\machine.config - for example)

<configuration>
   <configSections>
... 
      <section name="SourceCode.Data.SmartObjectsClient" type="System.Data.Common.DbProviderConfigurationHandler, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
... 
   <configSections>
<system.data>
<DbProviderFactories>
...
<add name="K2 SmartObjects Data Provider" invariant="SourceCode.Data.SmartObjectsClient" description=".NET Framework Data Provider for K2 SmartObjects" type="SourceCode.Data.SmartObjectsClient.SOClientFactory, SourceCode.Data.SmartObjectsClient, Version=4.0.0.0, Culture=neutral, PublicKeyToken=16a2c5aaaa1b130d" />
...
</DbProviderFactories>
</system.data>
....
</configuration>

Published Tuesday, July 29, 2008 4:21 PM by Bob

Comments

No Comments

Anonymous comments are disabled
Powered by Community Server (Commercial Edition), by Telligent Systems