In my export function I am returning the System.IO.Stream object from remote layer through remoting. But getting the stream object it becomes inaccessible when I called the remoting layer with integrated authentication. It is giving me The remote server returned an error: (401) Unauthorized exception even I access its CanRead or CanWrite property. This is happening only in case of integrated authentication. For without any authentication its working fine.