Web Connection
Can't Log in to module administration
Gravatar is a globally recognized avatar based on your email address. Can't Log in to module administration
  Stein Goering
  All
  Jun 23, 2019 @ 10:21pm

Working on my personal system running localhost with Admin.aspx unauthenticated...

When I click the link for moduleadministration.wc, Windows will not accept the credentials that I try to enter in the login dialog, even though I am using an Admin account with the correct password. So I thought I would just skip authentication by blanking AdminAccount in web.config, but I still get the dialog.

I thought maybe I was running into the loopback protection issue mentioned in the docs, but I added the suggested registry entry and am still unable to log in.

Any other ideas as to how to get windows to accept my credentials? Do I need to do something besides setting AdminAccount="" to disable authentication?

--stein

Gravatar is a globally recognized avatar based on your email address. re: Can't Log in to module administration
  Rick Strahl
  Stein Goering
  Jun 23, 2019 @ 11:56pm

Make sure Windows Authentication is enabled in IIS.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Can't Log in to module administration
  Stein Goering
  Rick Strahl
  Jun 24, 2019 @ 11:55pm

Both Windows and Basic Authentication were already enabled at the virtual directory level. I added both at the default web site, but still no luck.

If AdminAccount is blank I thought it would skip authentication entirely...

--stein

Gravatar is a globally recognized avatar based on your email address. re: Can't Log in to module administration
  Rick Strahl
  Stein Goering
  Jun 25, 2019 @ 10:49am

What are you seeing exactly in terms of behavior? Are you getting a 401 authentication error or something else?

Also, if you're on Windows 10 Home, it doesn't support Windows Authentication - only basic auth. But if that were the case you wouldn't be able to enable it.

To check and make sure try this:

Create a new project and run that. This will set the permissions of folders and the IIS settings the way they are supposed to be set and that at least ensures that the settings are all as they should be. If that doesn't work either then there might be something else happening.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Can't Log in to module administration
  Stein Goering
  Rick Strahl
  Jun 25, 2019 @ 09:59pm

I click the link for moduleadministration.wc I get the Windows login dialog. I repeatedly enter credentials that I know are good, but it just blinks and redisplays the dialog. I finally click Cancel and get a 401.1 notice.

This is Windows 10 Pro.

I'll try setting up a new project when I get a chance.

--stein

Gravatar is a globally recognized avatar based on your email address. re: Can't Log in to module administration
  Rick Strahl
  Stein Goering
  Jun 25, 2019 @ 10:14pm

That sounds like authentication is not enabled. If you have AdminAccount set to empty then the Web Connection server shouldn't even prompt you at all and just allow the request through. If you have empty and you still get prompted the issue is that IIS is actually requesting you to log in directly.

If you want ping me tomorrow and I can take a look at your machine and see what we can see...

+++ Rick ---

© 1996-2024