How do i resolve this exception : User Username not found in membership store does not exist.

How do i resolve this exception : User Username not found in membership store does not exist.

This question is not answered

Hi,

I am trying to get the forum threds from the community server .but i am facing the following exception

 

 

<Exception>
<InnerSource>CommunityServer.Components</InnerSource>
<InnerType>CommunityServer.Components.CSException</InnerType>

<InnerMessage>
CSException of type 'UserNotFound' was thrown: User Username not found in membership store does not exist.
</InnerMessage>

<InnerStack>
   at CommunityServer.Users.AddMembershipDataToUser(List`1 userList)
   at CommunityServer.Users.GetUsers(IList`1 userIds, Boolean isCacheable, Boolean fromCache)
   at CommunityServer.Users.AddUsersToCache(IList`1 userIds)
   at CommunityServer.Data.ForumsSqlDataProvider.GetThreads(ForumThreadQuery query)
   at CommunityServer.Discussions.Components.Threads.GetThreads(ForumThreadQuery query)
   at CommunityServer.WebServices.Services.Forums.ForumThreads.GetThreads(List`1 queryOptions)
   at CommunityServer.WebServices.Services.Forums.CSForumsService.ThreadGet(RequestInfo ri)
</InnerStack>
<Source>mscorlib</Source>
<Type>System.Reflection.TargetInvocationException</Type>

<Message>
Exception has been thrown by the target of an invocation.
</Message>

<Stack>
   at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
   at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at CommunityServer.WebServices.Services.Common.Rest.RequestHandler.GetResponse(RequestInfo ri, MethodInfo method)
   at CommunityServer.WebServices.Services.Common.Rest.RequestHandler.ProcessRequest(HttpContext context)
</Stack>
</Exception>

 

Is this problem related to  user membership?

All Replies
  • Hi Nitin,

    I ran into the same issue and found your post when trying to find a solution. I received the same error when searching for a specific user name in the control panel. The issue is a mismatch between the data in the cs_users table and aspnet_users table. I was able to resolve the error by making sure the data in the UserName column in cs_users table matched the data in UserName & LoweredUsername columns in aspnet_users table.

    I hope this points you in the right direction.