# Kinetic 2021.2 external WCF coding issue

**URL:** <https://www.epiusers.help/t/kinetic-2021-2-external-wcf-coding-issue/93209>\
**Category:** Kinetic ERP\
**Created:** [August 10, 2022, 11:11am UTC](https://www.epiusers.help/t/kinetic-2021-2-external-wcf-coding-issue/93209 "2022-08-10T11:11:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bebes](https://www.epiusers.help/letter_avatar_proxy/v4/letter/b/58f4c7/32.png) [@Bebes](https://www.epiusers.help/u/Bebes)\
**Post date:** [August 10, 2022, 11:11am UTC](https://www.epiusers.help/t/kinetic-2021-2-external-wcf-coding-issue/93209/1 "2022-08-10T11:11:08Z")

</div>

We are upgrading from 10.2.300 to Kinetic 2021.2. We have external applications that use WCF using [vb.net](http://vb.net) and were told by several people at Insights that WCF coding would work talking with 2021.2. In fact, we were told it was the last version that the .Net protocol would work. We will begin the REST code conversion after 2021.2 goes live.  
In some of our custom stand-alone programs, we have used Adapters to talk with Kinetic. These are updating well to the Kinetic world.  
We have many programs in which we have used BO Proxies – these are not compiling and have issues.  
An example of a program not working is below.  
This code is working without issue on our 10.2.300 system.  
I did add the two Epicor.Ice.Shared.Wcf.x references from suggestions found in this user group and it did eliminate many errors.  
Thank you very much for any thoughts or to just confirm we need to change the coding method to just use Adapters,  
Dave Beberman  
ERP Manager  
Ferguson Perforating

Example code snippet showing issue:

 ![image](https://www.epiusers.help/uploads/default/original/3X/2/3/2303d4475b34a0718d2fa3ed16f8ed57100498c4.png)  
 ![image](https://www.epiusers.help/uploads/default/original/3X/9/5/9517e890011d8c1fc29a1cf8204a80b6abae74a5.jpeg)  
 ![image](https://www.epiusers.help/uploads/default/original/3X/2/b/2b985bcc5b4c51c88ffcc1d0db0db190738cbb45.png)

---

<div class="post-metadata">

**Author:** ![Doug.C](https://www.epiusers.help/user_avatar/www.epiusers.help/doug.c/32/26714_2.png) [@Doug.C](https://www.epiusers.help/u/Doug.C)\
**Post date:** [August 10, 2022, 11:40am UTC](https://www.epiusers.help/t/kinetic-2021-2-external-wcf-coding-issue/93209/2 "2022-08-10T11:40:43Z")

</div>

Looks like the signature has changed:

```cs
Using jobentryClient = New Erp.Proxy.Bo.JobEntryImpl(uri, userId, password, authenticationMode)

```

AuthenticationMode seems to be Windows, AzureAD, IdentityProvider, Token or Basic.

---

<div class="post-metadata">

**Author:** ![Bebes](https://www.epiusers.help/letter_avatar_proxy/v4/letter/b/58f4c7/32.png) [@Bebes](https://www.epiusers.help/u/Bebes)\
**Post date:** [August 10, 2022, 12:10pm UTC](https://www.epiusers.help/t/kinetic-2021-2-external-wcf-coding-issue/93209/4 "2022-08-10T12:10:20Z")

</div>

Thank you Doug,

The clientcredentials appear to be readonly.

 ![image](https://www.epiusers.help/uploads/default/original/3X/b/3/b33fb74d8d8d117d74fe44d3de0f765d04d5fbdf.png)

---

<div class="post-metadata">

**Author:** ![Bebes](https://www.epiusers.help/letter_avatar_proxy/v4/letter/b/58f4c7/32.png) [@Bebes](https://www.epiusers.help/u/Bebes)\
**Post date:** [August 10, 2022, 4:05pm UTC](https://www.epiusers.help/t/kinetic-2021-2-external-wcf-coding-issue/93209/5 "2022-08-10T16:05:26Z")

</div>

Thank you for the help so far,  
I’ve gotten the code to compile but now have another block.  
Has anyone seen this ?

In form 1:  
Imports System.ServiceModel.Description  
Friend gclientCreds As New ClientCredentials  
Private Sub SetClientCredentials()  
gclientCreds.UserName.UserName = “X”  
gclientCreds.UserName.Password = “Y”  
End Sub  
In form 2:  
Dim appServer = New Uri(“net.tcp://xxxxxxx/ERPAPPSRV/erp/bo/jobentry.svc”)  
Using jobentryClient = New Erp.Proxy.BO.JobEntryImpl(wcfBinding, appServer, form1.gclientCreds)  
Dim jobentryDataSet As New Erp.BO.JobEntryDataSet

```
    Try
            jobentryDataSet = jobentryClient.GetByID(txtJobNum.Text) ‘set to a job # in main form
            '
    Catch ex As Exception
            MsgBox(ex.InnerException.Message.ToString)
   End Try

```

When the errorless compiled program runs, a job # is chosen in Form1 then control gets passed to form 2 to do the lookup.  
The exception caught by the Catch verb is

![image](https://www.epiusers.help/uploads/default/original/3X/c/c/cc362f94d80f0824e16d8be0549669b963288b2e.png)

The inner exception has the same message so no help there.
