Last post Jan 28, 2015 09:16 AM by AidyF
Jan 22, 2015 05:08 PM|hugonne|LINK
Hi all. I have an ASP.NET MVC site that uses Forms authentication. Security runs well on my development machine. My problem is that when I publish my site (Godaddy), when the user is redirected to the login page, instead of showing me that page, the browser
prompts me directly for credentials. Even worse, I doesn't let me log in even when I'm using the correct username and password.
My Web.config is pretty straight forward:
<forms loginUrl="~/Home/IniciarSesion" timeout="2880" />
I don't have any membership provider configured (removed those sections from Web.config), and I have my user name and password hardcoded in my controller, for testing purposes, but I haven't been able to log in.
Jan 26, 2015 04:35 AM|Andriod|LINK
Seems the file extension name is missing in your Web.config, can you try to add the file extension name like following and try again?
Jan 27, 2015 03:56 AM|Andriod|LINK
Sorry, please ingore my previous reply.
For browser prompts for credentials, could you please check if that is the dialog for windows authentication?
If yes, it might be related to IIS configuration, I think you can try to check that for IIS. as you said it's publised on Godaddy, do you have access to IIS for the host?
Jan 28, 2015 09:11 AM|hugonne|LINK
Thanks for your reply. The dialog is actually the same shown for Windows authentication, although I have it marked as Forms. Unfortunatelly, I do not have access to IIS management (to that level) on GoDaddy.
The only unusual "thing" is that my site is published to a subdomain (so it's inside a folder from another web site, also mine, that doesn't have the problem).
Is there any way to "override" the server settings from my Web.config?
Jan 28, 2015 09:16 AM|AidyF|LINK
You're better asking godaddy why your sub-site requires authentication. This is a configuration issue, not a coding one. Sub-domains generally can't just function inside a folder on another site, you need to ensure it is all set up correctly.