I am trying to call the WCF service from SQL CLR Stored procedure. I am able to create the procedure. but when I am executing the stored proc. it is showing the following error
Msg 6522, Level 16, State 1, Procedure SubmitFaxRequest, Line 0
A .NET Framework error occurred during execution of user-defined routine or aggregate "SubmitFaxRequest":
System.TypeInitializationException: The type initializer for 'System.ServiceModel.ClientBase`1' threw an exception. ---> System.Security.HostProtectionException: Attempted to perform an operation that was forbidden by the CLR host.
The protected resources (only available with full trust) were: All
The demanded resources were: Synchronization, ExternalThreading
What could be problem?