The first thing that comes to mind is to check to see if the ASPNET user on the server have access to read (or write, depending on what you're trying to do) the file you're trying to open...
Greg Reinacker Reinacker & Associates, Inc. http://www.rassoc.com -----Original Message----- From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of Tewari, Vijay Sent: Thursday, May 02, 2002 11:22 AM To: [EMAIL PROTECTED] Subject: Returning Stream from Remoting under IIS I am attempting to return a stream object from a remote object (using remoting but hosted under IIS). I basically give a filename from the client and expect to get a stream on that file. I fully aware that this is as bad idea from security but this is a proof of concept and not a "REAL" solution. I get an access denied exception when hosted under IIS. Any thoughts on how-to get this to work. Regards Vijay You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.