在Windows Server 2008 R2 Enterprise(7601:SP1)上运行IIS 7.5.7600.16385。我们的一个网站设置为全局记录错误,我们每天或每两天都会看到这一点。我们在web.config中使用授权属性来检查访问的用户角色以及IIS或MVC使用的任何代码都会产生此错误。这通常由单个局部视图触发,但我们也会在获取css或js资源时偶尔触发它。
System.Configuration.Provider.ProviderException: API failed due to error 'The data area passed to a system call is too small. '
at System.Web.Security.WindowsTokenRoleProvider.GetRolesForUser(String username)
at System.Web.Security.RolePrincipal.IsInRole(String role)
at System.Web.Configuration.AuthorizationRule.IsTheUserInAnyRole(StringCollection roles, IPrincipal principal)
at System.Web.Configuration.AuthorizationRule.IsUserAllowed(IPrincipal user, String verb)
at System.Web.Configuration.AuthorizationRuleCollection.IsUserAllowed(IPrincipal user, String verb)
at System.Web.Security.UrlAuthorizationModule.OnEnter(Object source, EventArgs eventArgs)
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
我们的网站可能有一些IIS设置不正确吗?知道发生了什么事吗?我们可以通过日志中的用户名看到用户通过IWA进行了正确的身份验证。