Ple*_*eun 3 c# asp.net security iis-7.5
我的安全性似乎有一个奇怪的问题:
我有一个包含以下文件夹的网站:
IIS APPPOOL\Classic用户可以完全访问此"readyfordownload"文件夹.
现在我有一个控制台APP,它在readyfordownload文件夹中创建一个zipfile.这是从ac#classlib完成的.奇怪的是,IIS APPOOL无法访问此文件,即使它完全控制该文件夹.此外,classlib首先创建一个xlsx文件,稍后将其添加到zip中.APPPOOL用户可以访问xlsx文件.
如果我从网站后面的代码在C#classlib中运行相同的函数,则会创建相同的zip文件,并且IIS APPPOOL用户可以访问该文件....
有任何想法吗?
zip是这样创建的(不是实际代码,但它是一样的) http://dotnetzip.codeplex.com/
using (ZipFile zip = new ZipFile())
{
// add this map file into the "images" directory in the zip archive
zip.AddFile("test.xlsx");
zip.Save("MyZipFile.zip");
Run Code Online (Sandbox Code Playgroud)
}
操作系统是Windows 2008 R2 Web服务器ZIP库是Dotnetzip(Ionic)
更新:我最感兴趣的是为什么ZIP文件没有获得权限,而xlsx文件确实如此....
| 归档时间: |
|
| 查看次数: |
1479 次 |
| 最近记录: |