c# - ServiceSecurityContext.Current.PrimaryIdentity.Name returning null in web service -


I am updating some legacy code that was originally written in VB on C #. I'm testing it locally with the test client I created. I would like to get the name of the client application in the web service application.

The legacy code uses the following properties to obtain the client application name:

  AppID = Service Security Consort. Present. Primary sincerity; name;  

However, I am testing this code locally, it throws a null exception error.

Is there a configuration file or maybe the IIS virtual directory is the web service that needs to be set up for this set of assets?

Thank you.


Comments