Blogroll

Friday, January 2, 2015

Thursday, January 1, 2015

The user profile service failed the logon. The profile cannot be loaded in Windows Server 2012.

Issue: The user profile service failed the logon. The profile cannot be loaded in Windows Server 2012.

Background: All of sudden when I was trying to log in to my Windows Server 2012 with My Admin account, I get issue with the error message saying.

Error: The user profile service failed the logon. The profile cannot be loaded.



Troubleshooting:
I tried various solutions from the new such as creating new account and copy over the stuff to new account.

Or Go into the Advanced Security Settings (right click on folder > properties > security > ) for the C:\Users\Default folder and checking the box to "Replace all child object permission with inheritable permissions from this object"

One of the KB article for MS says that User Profile Service may start to fail if you install April 2014 updates for Windows 8.1 or Server 2014.


However, in my case this was not the issue.

Resolution:
I looked for another KB http://support.microsoft.com/kb/947215, from which 3rd method does worked for me.

Removing SID and recreating the account again.

Please let me know if you have any issues following this.

Products Applied to:

·         Windows 8.1
·         Windows Server 2012.


Friday, December 26, 2014

How to set the dates of the current monday, wednesday and friday of the current week fo date and time column for a list


Set the Sunday of current week for date and time column in a list.

Add date and time column for a list Name it as Date

Select "Calculated Value" radio button under Default value section

=1-WEEKDAY(TODAY)+TODAY

whenever u add item to this list in NewForm.aspx
by default Date=dd-mm-yyyy(21-12-2014) i.e sunday of current week


















Reference:

http://superuser.com/questions/376698/how-to-get-the-dates-of-the-current-monday-wednesday-and-friday-of-the-current





SharePoint 2010: Making a Column Read-Only in a list using Sharepoint Designer


Using SharePoint Designer, you can make one of the columns on your list/library Read-Only so that when a user goes to edit the list item, that one particular field will be unmodifyable, even for Full Control Permissions.
This can be done by changing the field type from an “editable” field to a simple “display” field.
To do this, open up SPD and navigate to your list.
You want to create a new “Edit” form for this list so click on the “New…” button:
new-edit-form
Type in a name for your new form. Select the “Edit Item Form” radio button and go ahead and make this the default form for editing.
read-only-columns
Click OK and then open up your new form to edit the code.
In this particular library, I have a column that I named “Read-Only” which I will be changing to read-only mode in the edit form. To do this, scroll down to the column inside the code and change the following:

<SharePoint:FormField runat="server" id="ff3{$Pos}" ControlMode="Edit" 
FieldName="Read_x002d_Only" __designer:bind="{ddwrt:DataBind('u',
concat('ff3',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(
string(@ID)),'@Read_x002d_Only')}"/>
<SharePoint:FieldDescription runat="server" id="ff3description{$Pos}" 
FieldName="Read_x002d_Only" ControlMode="Edit"/>
 
to

<SharePoint:FormField runat="server" id="ff3{$Pos}" ControlMode="Display"  
FieldName="Read_x002d_Only" __designer:bind="{ddwrt:DataBind('u', 
concat('ff3',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims( 
string(@ID)),'@Read_x002d_Only')}"/> 
<SharePoint:FieldDescription runat="server" id="ff3description{$Pos}"  
FieldName="Read_x002d_Only" ControlMode="Display"/>
 
Now when you go to edit an item on your form via “Edit Properties”, the column will be read-only.




Reference:

http://sharepoint.indigoreality.com/2013/04/03/sharepoint-2010-making-a-column-read-only/

ShareThis

snow flakes

blogger widgets Blogspot Tutorial

LinkWithin

Related Posts Plugin for WordPress, Blogger...