Hello Mibuso,
I have created a Codeunit Web Service which I want to use in an ASP.NET Web Site. I followed the steps from MSDN and my project builds as expected. With the integrated Visual Studio IIS Express I can consume the Web Service without any flaws.
But when I publish my Web Site and run it unser IIS 10 the authentication fails. The Web Site asks me for my credentials, which is fine, but after submitting my credentials I get an HTTP-401 'Unauthorized' error.
In the IIS Manager I enabled the Windows Login for my Site and disabled all other options.
My Web.Config file contains these lines which should be correct.
Do you experts have any suggestions?
Kind regards.
I have created a Codeunit Web Service which I want to use in an ASP.NET Web Site. I followed the steps from MSDN and my project builds as expected. With the integrated Visual Studio IIS Express I can consume the Web Service without any flaws.
But when I publish my Web Site and run it unser IIS 10 the authentication fails. The Web Site asks me for my credentials, which is fine, but after submitting my credentials I get an HTTP-401 'Unauthorized' error.
In the IIS Manager I enabled the Windows Login for my Site and disabled all other options.
My Web.Config file contains these lines which should be correct.
<system.web> ... <authentication mode="Windows" /> <identity impersonate="false" /> ... </system.web>
Do you experts have any suggestions?
Kind regards.