views:

93

answers:

2

Hi All,

I have an existing webapp and i'm attempting to setup BlogEngine .Net to share the membership tables

Everything seems to work.. accept i can see that the Membership.ValidateUser call in blogengine returns false! While the other apps returns true.

I'm at a loss.. Membership.GetUser called from both apps returns the correct user..

Any ideas? thanks!

A: 

make sure

<machineKey validationKey="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" decryptionKey="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" validation="MD5"/>

is the same in both web.configs

bill
A: 

In the web.config, for each application, there is a setting called applicationName. This setting is there so that you can use a single users table with many applications. Now, the ASP Membership provider uses this as part of the query to find users. If this does not match on all of your web.configs and for each user records in the database, you will get a false login attempt if you are logging in from an non-matching application as that user does not belong to the application from which they are trying to log in. If they don't match, change the setting in the web.config and ensure that they all match in the DB tables as well.

Tommy