Quantcast
Channel: NAV Three Tier — mibuso.com
Viewing all articles
Browse latest Browse all 10032

Use Windows Credentials to consume a Web Service in ASP.NET

$
0
0
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.
  <system.web>
    ...
    <authentication mode="Windows" />
    <identity impersonate="false" />
    ...
  </system.web>

Do you experts have any suggestions?

Kind regards.

Viewing all articles
Browse latest Browse all 10032

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>