response.addheader

FileStream can't access the file because it's being used by another process

◇◆丶佛笑我妖孽 提交于 2019-12-20 02:11:33
问题 I'm new at web app in ASP.NET and I came across this problem. I have a page whe there is a Button to download a template.xls that is previously stored at a SharePoint page. I have the download method and it's working just fine. The template in question is being saved where it should be, on a folder where my web app is located, on my local IIS. The problem is to open this file to the end user. I need a popup to be displayed to the user, so he can open/save this template.xls I'm using the

FileStream can't access the file because it's being used by another process

大兔子大兔子 提交于 2019-12-01 21:38:05
I'm new at web app in ASP.NET and I came across this problem. I have a page whe there is a Button to download a template.xls that is previously stored at a SharePoint page. I have the download method and it's working just fine. The template in question is being saved where it should be, on a folder where my web app is located, on my local IIS. The problem is to open this file to the end user. I need a popup to be displayed to the user, so he can open/save this template.xls I'm using the following : //path on my local IIS where the file is located after the download string _strFolderApp = "~