System.Security.SecurityException: Request for the permission of type System.Security.Permissions.SecurityPermission failed.

WCF service Pieserver is hosted in IIS 7.5. It is using wshttpbinding.client : console application. We are able to add the service reference but get the exception below when we call any methods on the proxy object : Error Message: System.ServiceModel.FaultException`1[System.ServiceModel.ExceptionDetail]: The type initializer for ‘OSIsoft.RtBaseline.DataService.ServerManager’ threw an exception. System.TypeInitializationException: The type initializer for ‘OSIsoft.RtBaseline.DataService.ServerManager’…

1