CodeGarden 10: The sixth annual Umbraco Developer Conference
June 23-25th 2010 - free ASP.NET MVC pre-conference. Register today!

umbraco on 2008r2 iis 75 member login does not work

2/9/2010 10:38:11 AMAvatarmphLocation: Varde, Denmarkposts: 33Karma: 60

Hi,

I've succesfully installed Umbraco 4.0.3 on WS 2008R2 and thus on IIS 7.5 with integrated pipeline.

I do however not seem to be able to login to the site as a member, the login page does correctly validate if the username / password is correct, but only reloads the login page instead of the protected page!

Does anyone have a working setup on IIS 7.5 ?? Or any insights into what might be wrong?

 

Best regards,

Michael

2/9/2010 10:56:18 AMAvatarSebastiaan JanssenLocation: 2584GJ, The Hague, The Netherlandsposts: 572Karma: 1358
Comment with ID: 25762

Modify your web.config, this line needs to include the hashed password attribute:

<add name="UsersMembershipProvider" type="umbraco.providers.UsersMembershipProvider" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" passwordFormat="hashed" />
2/9/2010 11:06:07 AMAvatarmphLocation: Varde, Denmarkposts: 33Karma: 60
Comment with ID: 25766

Hi Sebastiaan!

Thanks, but that does not seem to be the problem, as the login page correctly displays an error if username / password is incorrect.

If the login is correct it only reloads the page!

I have tried to add passwordFormat="hashed" to my web.config, and after changing the users password to make it hashed the problem persists.

 

Best regards,

Michael

 

2/9/2010 11:16:51 AMAvatarSebastiaan JanssenLocation: 2584GJ, The Hague, The Netherlandsposts: 572Karma: 1358
Comment with ID: 25770

Strange.. in that case, you should have a look in the umbracoLog table or the windows event log to see what kinds of errors or even exceptions are being thrown. Also, my screencast about installing Umbraco on IIS7.5/Integrated pipeline might help, maybe you missed something? 

2/9/2010 11:23:23 AMAvataranthony hallLocation: London, nw3posts: 142Karma: 289
Comment with ID: 25771

i had a issue with IIS 7.5 with extensionless urls. So it would work with "logMeIn.aspx" but not "logMeIn".  Not sure if that helps. 

2/9/2010 11:26:29 AMAvatarArnold VisserLocation: Groenestraat 294 Nijmegen, Netherlandsposts: 47Karma: 44
Comment with ID: 25772

UseDirectoryUrls + Login = login not working.

fix:

in the umbraco web.config change:

<modules>

to:

<modules runAllManagedModulesForAllRequests="true">

2/9/2010 11:37:01 AMAvatarmphLocation: Varde, Denmarkposts: 33Karma: 60
Comment with ID: 25775

Yes indeed...

Nice screencast :)

There are no errors in the Windows event log, and in the umbracoLog table it shows that the it's opening the correct node - but it only reloads the login page.

Do you have a working website on IIS 7.5 with member protected pages using the built in control?

 

/Michael

2/9/2010 11:43:07 AMAvatarSebastiaan JanssenLocation: 2584GJ, The Hague, The Netherlandsposts: 572Karma: 1358
Comment with ID: 25776

I'm sorry, I misread! Thought you were trying to login to the backend.. never mind, try Arnold's solution, that sounds good! :-)

2/9/2010 11:52:28 AMAvatarmphLocation: Varde, Denmarkposts: 33Karma: 60
Comment with ID: 25777

I tried to add <modules runAllManagedModulesForAllRequests="true">, but that didn't change anything...

 

/Michael

2/9/2010 11:56:46 AMAvatarArnold VisserLocation: Groenestraat 294 Nijmegen, Netherlandsposts: 47Karma: 44
Comment with ID: 25778

you do use directory urls?

2/9/2010 12:05:38 PMAvatarmphLocation: Varde, Denmarkposts: 33Karma: 60
Comment with ID: 25783

I'm not really sure, as I've only taken over the site to do the backend install on IIS 7.5 (I didn't code it...).

umbLoginMembership is being used as a usercontrol and being called by a macro.

I've also tried on a fresh install of 4.0.3 with NO usercontrols / macros. I just protected a page and made a login template see below, again only a blink and the page reloaded. But it does correctly parse if the username / password is correct, so that part works!

On the fresh install of 4.0.3 I also tried to add <modules runAllManagedModulesForAllRequests="true">, but here the problem also persists...

/Michael

 

Pages:

Please login or Sign up To post replies