I'm modeling my code from this StackOverflow post but I am getting an exception saying that I cant access (due to permissions) the file location which is somewhere on a virtual location since i'm using IIS Express. I want to know if there is a way to store the file in memory while it forms and then pass it back to the calling method, and then have that file be downloaded to a client that requested it via a button click. I was thinking of building a byte[] but feel that's too much work; any suggestions?

Related posts

Recent Viewed