DownloadClient.OpenFileAsAttachment called within CompletedEventArgs EH

Nov 1, 2013 at 11:31 PM

When I call the DownloadClient.OpenFileAsAttachment from within a CompletedEventArgs EventHandler of a WCF service, the Method never fires. If I call it outside of this EventHandler it works just fine. What could be the problem or is this even possible?
void client_CreateDataFilesCompleted(object sender, CreateDataFilesCompletedEventArgs e)
            DownloadClient.OpenFileAsAttachment("AppName/FileDownload.ashx", e.Result);
Nov 3, 2013 at 7:30 PM
Can you provide some more details?

Is the Completed eventhandler running on your client or web server?'

Shouldn't matter where you're calling this from. do you get any exceptions?
Nov 11, 2013 at 4:44 PM
Yes. The completed event handler is running in the client. I call a WCF service from a service reference on the client to create a zip file. I then use the event handler to pass the e.result which is the name of the zip file back to the downloadclient.