简体   繁体   English

IIS7 IUSR帐户权限不适用于表单身份验证和文件上传

[英]IIS7 IUSR account permissions not working with forms authentication and file upload

I am trying to deploy an asp.net 4 app to a new microsoft server 2008 R2 我正在尝试将asp.net 4应用程序部署到新的Microsoft Server 2008 R2

I have set up the application as I have done dozens of times before and set the folder permissions appropriately. 我已经完成了数十次的设置,然后适当地设置了文件夹权限。

I have tried setting the application pool name directly to have write permissions I have tried setting IUSR, IIS_IUSRS, NETWORK SERVICE and Users. 我尝试直接将应用程序池名称设置为具有写权限,但是我尝试设置IUSR,IIS_IUSRS,NETWORK SERVICE和用户。

I have confirmed that windows authentication is disabled and anonymous is enabled as well as forms authentication is enabled. 我已经确认Windows身份验证已禁用,并且启用了匿名身份验证以及窗体身份验证已启用。 Logging in works fine i can access all pages normally except if i try to write to the folder. 登录正常,我可以正常访问所有页面,除非我尝试写入该文件夹。 Then a password is required box pops up which looks like windows authentication (even though its disabled) 然后会弹出一个要求输入密码的框,看起来像Windows身份验证(即使已禁用)

Every post here states and in my past experience says if I set the folder permissions for the defaultidentity application pool it should work, but for some reason this server wont let me do it! 这里的每篇文章都指出,根据我过去的经验,如果我为defaultidentity应用程序池设置文件夹权限,它应该可以工作,但是由于某种原因,该服务器不允许我这样做!

Any help would be most appreciated. 非常感激任何的帮助。

Welp this turns out to be a really weird one. 韦尔普(Welp)这真是一个很奇怪的方法。 For some reason when SQL reporting services is installed it reserves the folder name "Reports" in any IIS Web application folder regardless of whether your actually using Reporting services. 由于某些原因,在安装SQL Reporting Services时,无论您是否实际使用Reporting Services,它都会在任何IIS Web应用程序文件夹中保留文件夹名称“ Reports”。 Its not created by default or anything, but if you happen to create folder titled "Reports" dont expect to access anything from it. 它不是默认创建的,也不是任何内容,但是,如果您碰巧创建了名为“ Reports”的文件夹,则不要期望从中访问任何内容。 After many hours of frustration it turns out it's a random reservation which doesn't throw any error just somehow overrides your authentication protocol to use windows authentication for their reserved folder. 经过数小时的挫败之后,事实证明这是一个随机保留,不会引发任何错误,只是以某种方式覆盖了您的身份验证协议以对其保留文件夹使用Windows身份验证。

Thanks Microsoft! 谢谢微软!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM