Tuesday, August 3, 2010

In SharePoint 2010, Normal search is working and People search result is not working fine. Why?

Issue:
Finally, you may have configured the user profiles synchronization & Search services. Also, you may be able to see the number of profiles under "User profile service" and contents under "Search Service". 

Then, If you have used the search box and search results web parts to display the web application contents (not people), you can able to see the documents, forms, pages, etc... But, you cannot see the "people", if you click on the "people" tab in search results page. (or) you cannot see the results, if you have used the "peopleresults" web part.

What will be reason? :)

Reason:
You may have forgot to add the URL to crawl the people in Search service "ContentSource". So, just add the exact url which will start "SPS3://".

Example:
SPS3://km.sensoft2000.com (just an example)

















Thats it....


Error: The management agent failed on run profile "DS_FULLIMPORT" because of connectivity issues

Error:
The management agent  failed on run profile "DS_FULLIMPORT" because of connectivity issues.

Reason:
You will get this error during the profile import from "User Profile Service" of SharePoint 2010. The reason is the domain name may be mismatched with the actual domain name. Because, you will use the domain name like "sensoft" (just an example). But the actual domain may be different in Profile AD. for example, the actual domain name will be "sensoft.local" for "sensoft". So, you have to change the actual domain name in the "Synchronization  Service Manager". 

Solution:
To resolve this error, just follow the below steps:

1. Login into the SharePoint 2010 server.
2. Open the Synchronization Service Manager from C:\Program Files\Microsoft Office Servers\14.0\Synchronization Service\UIShell\miisclient.exe
3. Go to "Management Agents" tab & select the "Active Directory Domain Services" type




















4. Double click on it & Select "Connect to ActiveDirectory Forest" 
5. The domain name may be different than the profile "Connection string" provided in the central admin. Give the correct domain name and press "OK". If there is any error, you will get error in this step itself.





















6. Again rigth click on your "Ad Profile Connection string" & click the "Run".




















7. Select "Full Import" option in  the next Pop-up window.
8. Your profile will be crawled successfully, if there is no connectivity error.
9. If you are getting any connectivty error, check my another post,  "http://sensoft2000-sharepoint.blogspot.com/2010/08/error-replication-access-was-denied.html"

Thats it...

Error: Replication access was denied. error code: 8453

Error:
Replication access was denied. error code: 8453

Reason:
You will get this error, while you are trying to crawl the people from Active directory in SharePoint 2010. 

During the people search configuration, the the number of people will not be crawled in SharePoint 2010. Also, you cannot get the actual error straightaway. The right way to get the actual error message is, you have to use the Synchronization service manager. You can get this tool inside the SharePoint server at the below path:
C:\Program Files\Microsoft Office Servers\14.0\Synchronization Service\UIShell\miisclient.exe 

In this tool, if you "Run" the Profile Import, under the "Operations" tab, you will get the above error message. The error screenshot may be like below:


















Solution:
The resolve this issue, we must provide the access rights to the service account of the "User Profiles" service. OK. What kind of access rights needs to be provided? 

The user should have the "Replicating Directory Changes" Permission in the active directory. To provide this rights to the "service account" user, follow the below steps:

1. Login into the Active directory server.
2. Open the "Active Directory Users and Computers" console.  (C:\WINDOWS\system32\dsa.msc)
3. Right click on the "Domain name" and goto "properties".


















4. Go to security tab and Select the specific service account user. (If the user is not listed, you can add the user by clicking the "Add" button in the same screen).
5. Scroll the Permissions and select the "Replicate Directory Changes" option like the below image.



























Thats it...

Thursday, July 29, 2010

Error: Access is denied. Verify that either the Default Content Access Account has access to this repository, or add a crawl rule to crawl this repository. If the repository being crawled is a SharePoint repository, verify that the account you are using has "Full Read" permissions on the SharePoint Web Application being crawled.

Error:
Access is denied. Verify that either the Default Content Access Account has access to this repository, or add a crawl rule to crawl this repository. If the repository being crawled is a SharePoint repository, verify that the account you are using has "Full Read" permissions on the SharePoint Web Application being crawled.

Reason:
This error will occur, at the time of crawling the SharePoint application content. because, you may have provided a URL to access the SharePoint web application like http://kmportal.sensoft2000.com (just an example).
When the search engine tried to crawl the content using the kmportal.sensoft2000.com URL, the server will reject the request. because, it will take the request as "LoopBackRequest".

Solution:
So you need to disable the LoopBackRequest in registry. To do this, just follow my instructions:

1. Go to command window and type regedit.exe
2. Once opened the registry editor, just navigate to "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa"
3. Right click on "Lsa" and create a new 32bit DWORD value
4. Rename it as "DisableLoopbackCheck" (Note: you cannot rename it actually. so, once created the DWORD value, directly paste/type as "DisableLoopbackCheck".
5. Then again modify the value of "DisableLoopbackCheck" as "1"
6. Close the registry editor.
7. Now start to crawl the content. 


Thats it...

Tuesday, July 13, 2010

Issue: Multiple login prompts while browsing a SharePoint application

Issue:
Sometimes, you will be prompted to type the Login credentials to enter into the SharePoint application.

(Amazingly, this will not occur in Firefox)

Reason:
Because, all your browser requests may be processed through the proxy. So the response will be passed through the proxy and the converted HTML output will be displayed in browser. So, the browser will trying to access the SharePoint application's resources (like images, css) directly through the HTTP. By default, nobody can access the SharePoint resources directly in the browser and they can be accessed only if he is the authorized person.

I meant, this kind of access is equivalent to access a image directly from SharePoint image library in browser like, http://sensoft2000-sharepoint.blogspot.com/Images/Logo.jpg (Just an example).

Solution:
You have to add the URL in trusted sites zone of the IE and the URL should be added in exception list. 


Just follow the below mentioned steps to fix this issue.
  • Open the IE browser
  • Go to Tools and click internet options
  • Then Click "Security" tab
  • Select "Trusted Sites"
  • Click "Sites" button
  • Type your URL in the text box and click "Add" button.
  • Click "Close" button
  • Click "Apply" button
  • Go to "Connections" tab
  • Click "LAN Settings" button
  • Here your "Proxy Server" check box may be checked already.If not, Select it
  • Click "Advanced" button
  • Now, you will see a Text area in the "Exceptions" panel.
  • Here you have to add your URL. for example, if your URL is like http://moss.sensoft2000.com (example), then you need to add the URL as mentioned in the below screenshot *.sensoft2000.com. 



Thats it...

Monday, July 12, 2010

Error: Cannot navigate to the requested page while User Profile Synchronization is running. Please wait for the current Synchronization run to finish.

Error:
Cannot navigate to the requested page while User Profile Synchronization is running. Please wait for the current Synchronization run to finish.

Reason:
You will get this error, in case if you are trying to "Import the User profiles" in SharePoint 2010. Sometimes, "The user profile sync" job may not be running or it may be in "Starting" stage for a long time. 

You can check this status in central admin as I said below. 

  • In central admin, go to "Monitoring" link 
  • Then go to "Review Job definitions"  under "Timer Jobs"
  • Then click the "Running Jobs" link in left hand side.
Here you can see that the sync job will be running continuously. Reason is the required services may not be ready after the SharePoint 2010 installation.

So, what to do?

Solution:
Solution is very simple. Just login into the SharePoint server and go to the command prompt with administrator privileges (right click on the "Command Prompt" icon and select the 'Run as Administrator' option).

Then,  just type "IISReset" to reset the IIS.

Now you can come and check the Running Jobs link as I mentioned above. 

Thats it...

Error: The context has expired and can no longer be used. (Exception from HRESULT: 0x80090317)

Error:


The context has expired and can no longer be used. (Exception from HRESULT: 0x80090317) 


Reason:
1. Security context of your session may be expired.
2. You/somebody may have changed the date/time in the server.


Solution:
1. Just change/update the Date/Time in the SharePoint server.
2. Increase the Security context in SharePoint central admin. This can be done by following the below steps:


  • Go to central admin
  • Go to  "Application management section"
  • Go to "Web Application General Settings"
  • Go to "Web page Security validation" section & increase the timeout field. Or, you can simply disable this option.




Thats it...