0

I know that this has been asked before here, but I couldn't find a way to fix this. I'm using VS 2022/MVC 5/IISExpress and these are my configs:

web.config:

    <authentication mode="Windows"  />
    <authorization>
        <deny users="?" />
    </authorization>

And these lines in my vbproj file:

    <IISExpressAnonymousAuthentication>disabled</IISExpressAnonymousAuthentication>
    <IISExpressWindowsAuthentication>enabled</IISExpressWindowsAuthentication>

According to the approved solution in this post the above should work, but doesn't. I am logged in to Windows using my domain account and have been added to local administrators group (Of course I'm not a domain admin, just a standard user). I can login to my web app using my own domain account, but not with other domain accounts (I have tried two different accounts). Any credentials other than mine is rejected by application. How can I fix it?

  • Two questions: 1. How are you logging in with your own account? (does it ask you for credentials?) and 2. What *does* happen when you try a different account? – Gabriel Luci Jul 04 '22 at 13:45
  • @GabrielLuci 1. When I open site, a pop-up dialog appears and asks for credentials. When I enter my own credentials, it accepts and displays home page. 2. When I enter other credentials, that pop-up dialog disappears and re-appears again, asking for credentials again. – Mohammad Javahery Jul 05 '22 at 03:25

0 Answers0