Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
leonardo_raed
Partner - Contributor III
Partner - Contributor III

Qlikview SDK "Service Key is Missing"

Hi guys,

I try to use the SDK in Visual C# 2010 Express. I follow the steps in "Getting started QMS API.pdf" but throw the "Service Key is Missing" exceptions in the line "ServiceKeyClientMessageInspector.ServiceKey = Key;"

Any ideas?

Leo.

1 Solution

Accepted Solutions
Not applicable

The most likely cause for this error would be that the following line is missing in your config file:

behaviorConfiguration="ServiceKeyEndpointBehavior".

This should be placed before the end tags of each endpoint address node.

View solution in original post

5 Replies
Not applicable

Hi, i'm having the same problem, did you resolve it?? any ideas please??

Not applicable

The most likely cause for this error would be that the following line is missing in your config file:

behaviorConfiguration="ServiceKeyEndpointBehavior".

This should be placed before the end tags of each endpoint address node.

schlettig
Partner - Creator
Partner - Creator

Hi Andrew,

thanks for that hint. It solved my problem!

The <serviceKeyBehavior /> entry in the web.config is still blue underlined.

But the exception with the "serviceKey" missing is gone!

Using dotnet 4, Visual Studio 2010.

Best regards,

Christian

Not applicable

Sorry for taking so long.

The issue with the blue underline is a.NET bug with intellisense. The code should still compile and run fine.

Anonymous
Not applicable

Thanks Andrew. It worked like charm.

I added that line as shown below in bold.

<client>

      <endpoint address="http://<servername>:4799/QMS/Service" binding="basicHttpBinding"

        bindingConfiguration="BasicHttpBinding_IQMS" contract="QMSBackendService.IQMS"

        name="BasicHttpBinding_IQMS" behaviorConfiguration="ServiceKeyEndpointBehavior" />

      <endpoint address="http://<servername>:4799/ANY/Service" binding="basicHttpBinding"

        bindingConfiguration="BasicHttpBinding_IQTService" contract="QMSBackendService.IQTService"

        name="BasicHttpBinding_IQTService" behaviorConfiguration="ServiceKeyEndpointBehavior" />

    </client>