Look at this post:
We get the same error in that post, and we changed sterling source code. please look at comments.
public BinaryWriter GetWriter(string path)
BinaryWriter binaryWriter = null;
binaryWriter = new BinaryWriter(File.Open(path, FileMode.Create, FileAccess.Write));
throw new SterlingElevatedTrustException(ex);
/* We remove this code, I just post this issue to confirm this issue is exist, our solution is correct? please sterling team advise, thanks.
if (binaryWriter != null)