DNN instance with multiple application ids
This might be too specific of a problem 开发者_如何学运维- but any ideas are appreciated
I have a DNN 3.2.2 instance that is sort of broken right now - the main item that shows up is the User Admin screen will not appear it has a application error.
Looking in the Database there are two application IDs in aspnet_Applications and some uses use one and some users use the other
I have tried setting all the users in aspnet_Users and aspnet_Membership to one or the other application id to see if this fixes the error but this does not fix the problem
Anyone have some ideas on a fix for this ??
So, basically you have 1 application, but the membership db thinks there is 2? That sounds pretty messed up, the best solution would probably be to write an SQL script that migrates all users under 1 app to the other.
In terms of your quick fix, I didn't see you mention aspnet_Roles, which will also contain the ApplicationId. Not changing that table too could explain why it didn't work. i.e. You changed the app for a user, but not that user's roles.
Open up your web.config and look for the AspNetSqlMembershipProvider node and look for the applicationName attribute. By default, this should be set to "DotNetNuke".
Now open up your database, and look in the AspNet_Applications table and see which ApplicationId maps to "DotNetNuke" (or whatever you have in your web.config).
Now, in theory, all your portal users should be mapped to that ApplicationId. Now open look at the AspNet_Membership and AspNet_Users tables and ensure that the ApplicationId matches the ApplicationId that this DotNetNuke instance is mapped to.
I know you know this, but I'll say it, back your database before changing this - so you can track your steps back.
Also, I am not entirely sure this is your problem, but this might be a good step in the right direction.
I hope this helps.
Good luck!
精彩评论