I am updating some legacy code that was originally written in VB to C#. I am testing it locally with a test client that I created. I would like to get the name of the client application within in the web service application.
The legacy code uses the following property to retrieve the client application name:
AppID = ServiceSecurityContext.Current.PrimaryIdentity.Name;
However, I am testing this code locally, it throws a Null Exception error.
Is there something in the configuration file or maybe the IIS virtual directory that has the web service that needs to be set in order for this property to be set?
Thanks.