I have a code to run a Search Query which I am running through a site which is having Formn Based authnetication configured.
When I am logged in with the FBA user and try to perform a search query then It throws an error as
Sorry, something went wrong.
TECHNICAL DETAILS Error:Server was unable to process request. ---> Attempted to perform an unauthorized operation.
SPSecurity.RunWithElevatedPrivileges(delegate
{
resultXml = queryService.Query(xmlQuery); //Error Here
});
Can anybody provide me details How to Resolve this ?
Note: This same code is working when running it from a site which does not have FBA setup.