Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

can not show login page on mvc site #295

Closed
infofromca opened this issue Aug 26, 2017 · 16 comments
Closed

can not show login page on mvc site #295

infofromca opened this issue Aug 26, 2017 · 16 comments

Comments

@infofromca
Copy link

just click log in , go to http://localhost:5100/Account/SignIn, then get this
login-err

@infofromca infofromca changed the title ca not show login page on mvc site can not show login page on mvc site Aug 26, 2017
@CESARDELATORRE
Copy link
Collaborator

@infofromca Things to try:

  1. Did you open the firewall ports as specified in the setup intructions?: Se section about the firewall rules. You can do it manually or running the PowerShell Script:
    https://github.com/dotnet-architecture/eShopOnContainers/wiki/02.-Setting-eShopOnContainers-in-a-Visual-Studio-2017-environment

  2. Is the Identity.API project container up and running when you do a "docker ps" from command line?

@CESARDELATORRE
Copy link
Collaborator

Also, try deleting all the old Docker images from eShopOnContainers registered in your local Docker and re-deploy.
You can do it by running this PowerShell Script:
https://github.com/dotnet-architecture/eShopOnContainers/blob/netcore2/cli-windows/delete-vs-and-eshop-images.ps1
It might be because any older Docker image was not updated.

@buzzfrog
Copy link

buzzfrog commented Sep 6, 2017

I have the same problem. I'm on branch netcore2. I have done both things that you mentioned above. Image identity.api:dev is up and running.

@CESARDELATORRE
Copy link
Collaborator

The DEV branch is already NET Core 2. A brand-new for clone should work for you. Make sure you delete older images, just in case.

@CESARDELATORRE
Copy link
Collaborator

The DEV branch is already NET Core 2. A brand-new git clone should work for you. Make sure you delete older images, just in case.

@huangmaoyixxx
Copy link

I have same problem and solved it by reading followed text in the question area

eventually, +1 VS2017 on Win10, Docker 17.06.1:After the first compile and startup, I was struggling for a while with this error (also mentioned a few times before, but with no apparent solution):IDX10803: Unable to obtain configuration from: 'http://10.0.75.1:5105/.well-known/openid-configuration'.Investigating this, I found that the request for this address worked from a local browser, but not from another container. Looking into the firewall rules of the ps-script gave no results, but disabling the vpnkit block rules (probably installed by Docker CE) solved the problem!(I am not quite sure if the rules applied by this project was intended to fix this or not, and/or if my system is any different from any default system with Docker CE, but maybe anyone can confirm. Sorry for spamming this topic, but it is apparently the only hit for "IDX10803")EDIT: Just realized how obvious this is: Upon first start-up of the project, you'll get a default firewall-prompt by windows, asking to allow vpnkit to access network resources. If you're in a domain network, the default is to allow for domain network, and to block for public profile. However, from inside the docker containers, the request appears to be on public profile, so these rules will cause some trouble

@buzzfrog
Copy link

buzzfrog commented Sep 8, 2017

Great.
I want to confirm what @huangmaoyixxx wrote above. When I disabled the firewall rule vpnkit for TCP it worked.

@eiximenis
Copy link
Contributor

Hi! I added a reference to @huangmaoyixxx comment in the FAQ section, to help other people!

Thanks!

@CESARDELATORRE
Copy link
Collaborator

Closing this issue.

@niras-nmr
Copy link

Hi!
How did you disable the firewall rule for vpnkit? Or could you help with a link to the FAQ section where a solution to this error is described?

Thanks!

@buzzfrog
Copy link

  1. Open Windows Firewall
  2. Go to Advanced settings
  3. Click on Inbound Rules
  4. Find vpnkit and disable rule
    (I don't know if it break something else. So be cautious when doing this.)

@IharHrunt
Copy link

I also wish to confirm that it works. Thanks!

@VoodooSV
Copy link
Contributor

VoodooSV commented Sep 6, 2018

huangmaoyixxx
Thanks! It helps me too!

@mvelosop
Copy link
Collaborator

Added a reference here from the setup pages on Windows.

@zameerh
Copy link

zameerh commented Jun 7, 2020

Login page error is resolved by a workaround, use docker-compose up and when the services are up navigate to
http://docker.for.win.localhost:5100/ for webmvc and
http://docker.for.win.localhost:5104/ for webspa

@pavanarya
Copy link

I am able to solve the login issue by navigating to login from this
http://docker.for.win.localhost:5100/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests