I have this site hosted in a couple of places.
Both with the same code.
In a weird way http://flowerpictures.tesselaars.com/Account/Register redirect it to login.
The register action is as simple as
// GET: /Account/Register
public ActionResult Register()
Not sure if this might help but the register view uses
What works in one location doesn't in another. Both sit on the same server.
Looks like you're restricting anonymous users from accessing this action. This'll happen when you've set the
Authorize attribute, at the class level - thus cascading accessibility down to your action methods.
Authorize attribute that's at the class level, and only add it to applicable action methods inside the class.
It'd also be good to look at the
web.config and check the
Authorize section where the accessibility is configured for anonymous and authenticated users:
<configuration> <system.web> <authentication mode="Forms"/> <authorization> <deny users="?"/> </authorization> </system.web> <location path="/account/register"> <system.web> <authorization> <allow users="*"/> </authorization> </system.web> </location> </configuration>