Saturday 21 September 2013

How to disable Edit My Profile button from SharePoint My Site template

Problem Description:

In SharePoint My Site template "Edit My Profile" option is present.
If user click on that link,then they can change their details,which get reflected into Active Directory.
So our on of the client doesn't want to give permission to user to change their profile data.

When i see URL, thoughts.aspx page is present in _layouts folder.



Resolution:

Step 1: Open SharePoint layouts folder.

            (How to access layout folder)

Step 2: Open 
thoughts.aspx file in notepad.

Step 3 : As shown in below image hide div tag.


Step 4: Open  thoughts.aspx in IE.


Product applies to:

·     SharePoint Server 2010

·     SharePoint Foundation 2010


How to access layout folder in SharePoint

Problem Description:

Where is the _layouts directory on the server?

Resolution:

Sharepoint 2010 layouts folder:

C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\

If you're using SP 2007 the folder is

C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\


Product applies to:

·     SharePoint Server 2010

·     SharePoint Foundation 2010

Could not load the Web.config configuration file. Check the file for any malformed XML elements, and try again. The following error occurred: The given key was not present in the dictionary.

Problem Description:

I tried to debug SharePoint project in Visual Studio 2010. I found error where deploying project/solution is fine, but debugging doesn’t work. I saw an error alert with the text:
“Could not load the Web.config configuration file. Check the file for any malformed XML elements, and try again. The following error occurred: The given key was not present in the dictionary.”



The Web.config doesn’t have any error. One thing to check into is the configuration of alternate access mappings in Central Administration.
For debugging to work, the Site URL property of our SharePoint project must match the URL of the Default zone for your web application.

Resolution:

Step 1: Go to Central Administration

Step 2: System Setting

Step 3: Configure alternate access mappings

Step 4: Edit public URLs



Step 4: Set Default URL same as Visual Studio
(In this case make it as http://SiteName:20103)





Product applies to:

·     SharePoint Server 2010
·     SharePoint Foundation 2010