Search code examples
c#iiswindows-authentication

Windows authentication with NTLM issue


I would like to make an IIS (8.5.9600) web service with windows authentication, which provider is NTLM. My problem is that i cannot login to website using my windows domain credentials as i expected I should. Nither works for me. For this moment i'm stuck due to i'm not able to login to see website with webservice.

Windows version: Microsoft Windows Server 6.2

I think i did't something wrong with configuration.

I've tried to login using patterns: DOMAIN\username username

Website authentication config: https://ibb.co/FBZXqym

Website roles config: https://ibb.co/qDY1PWb

Webserivce app authetication config: https://ibb.co/LvZdF45

Windows authentication providers: https://ibb.co/FVcxXTm

Webservice app roles config: https://ibb.co/xHBvq9d

I've also added fully persmisions for IIS app pool user to WebService app.

My web.config:

<configuration>
<system.web>
  <compilation debug="true" targetFramework="4.7.2" />
  <httpRuntime targetFramework="4.7.2" />
  <authentication mode="Windows"/>
  <authorization>
    <allow users="*" />
  </authorization>
</system.web>
<system.codedom>
  <compilers>
    <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:default /nowarn:1659;1699;1701" />
    <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:default /nowarn:41008 /define:_MYTYPE=\&quot;Web\&quot; /optionInfer+" />
  </compilers>
</system.codedom>
<runtime>
  <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
    <dependentAssembly>
      <assemblyIdentity name="Autofac" publicKeyToken="17863af14b0044da" culture="neutral" />
      <bindingRedirect oldVersion="0.0.0.0-4.9.2.0" newVersion="4.9.2.0" />
    </dependentAssembly>
  </assemblyBinding>
</runtime>

I would like to login to my webservice app and see standard .asmx page. Currently i can't.


Solution

  • All I had to do was restart entire IIS app server. After that it started to work correct, that mean then i've got to login to app.

    Thank you all for your help!