Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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.
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.
Hi, i'm having the same problem, did you resolve it?? any ideas please??
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.
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
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.
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>