【问题标题】:Windows Authentication in IIS 8.5, Windows server 2012 .net 4.5IIS 8.5、Windows server 2012 .net 4.5 中的 Windows 身份验证
【发布时间】:2016-01-21 17:32:09
【问题描述】:

通过 IIS 8.5 Windows 身份验证,Windows server 2012,我们一直在拒绝 HTTP 500 和 401 访问。在他们升级到 .net 4.5 之前,这是一个正常工作 在一些帖子中人们遇到了 IIS 8.5 和 windows 的问题,但我仍在寻找。有人可以就我们一直面临的这个问题给我一些提示吗? 我们正在使用带有 Active Directory 的 Windows 身份验证,禁用匿名身份验证。还尝试了 apppoolidentity、networkserviceaccount。这是 Microsoft 已更改的权限问题

一旦管理员连接到网络服务,每个人都可以连接。 如果不属于管理员组的人首先尝试连接,显然他们会失败,然后包括管理员在内的其他人都无法连接。此时只有 IIS 重置和应用程序池重置几次可以提供帮助 我们在这里尝试了各种网络配置更改。使用 Ntlm、协商和匿名身份验证。 这是提琴手日志。它不会通过 IIS 身份验证。

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><s:Fault><faultcode xmlns:a="http://schemas.microsoft.com/net/2005/12/windowscommunicationfoundation/dispatcher">a:InternalServiceFault</faultcode><faultstring xml:lang="en-US">The type initializer for '&lt;Module&gt;' threw an exception.</faultstring><detail><ExceptionDetail xmlns="http://schemas.datacontract.org/2004/07/System.ServiceModel" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><HelpLink i:nil="true"/><InnerException><HelpLink i:nil="true"/><InnerException i:nil="true"/><Message>Access is denied</Message><StackTrace>   at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited)&#xD;
   at System.Diagnostics.NtProcessManager.GetModuleInfos(Int32 processId, Boolean firstModuleOnly)&#xD;
   at System.Diagnostics.ProcessManager.GetModuleInfos(Int32 processId)&#xD;
   at System.Diagnostics.Process.get_Modules()&#xD;
   at e5d1OZESgxkHKTAiuF.eqqrt5LE3cVaS2s6Kr.uXUty05WO0oTNxRkMa(Object )&#xD;
   at e5d1OZESgxkHKTAiuF.eqqrt5LE3cVaS2s6Kr.el9Dh8lMb()&#xD;
   at .cctor()</StackTrace><Type>System.ComponentModel.Win32Exception</Type></InnerException><Message>The type initializer for '&lt;Module&gt;' threw an exception.</Message><StackTrace>   at SyncInvokeCreateSessionUsingDomainAuthentication(Object , Object[] , Object[] )&#xD;
   at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]&amp; outputs)&#xD;
   at </StackTrace><Type>System.TypeInitializationException</Type></ExceptionDetail></detail></s:Fault></s:Body></s:Envelope>

【问题讨论】:

    标签: windows-authentication iis-8 iis-8.5


    【解决方案1】:

    我为此写了一些东西:

    我建议使用默认身份验证设置重新创建站点和新应用程序池。确保您已安装 Web-Windows-Auth 先决条件。并进行了适当的Set-WebConfigurationProperty 更改。

    您不必对 AppPool 或网站文件权限进行任何更改。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-04-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多