Monday, September 17, 2012

PeoplePicker related issue in custom Layouts pages after SharePoint June 2011 CU



If you are using PeopleEditor AKA PeoplePicker in custom layout pages and have installed SharePoint 2010 SP1 and the June 2011 CU you may experience problems if your application page performs a postback.

If you have filled your people editor control with a value before a postback is triggered, it will stop functioning as an actual picker and if you perform another postback on the page you will get an errormessage: “String was not recognized as a valid Boolean”.

The reason seems to be that a lot of span tags are not regenerated after the first postback.
The only descent fix so far seems to be to validate the PeopleEditor control in the page OnLoad event:

protected override void OnLoad(EventArgs e)
{
    base.OnLoad(e);
    if (IsPostBack)
    {
        yourPeopleEditor.Validate();
    }
}

Wednesday, September 12, 2012

Prompt to save HTML pages in SharePoint 2010 site collections

We uploaded an site collection to a web application, made a link to the index.html page.but when we clicked the link we were prompted to download the html page instead of opening it in the browser.

sharepoint 2010 html page prompt

It appears to be a new security setting in SharePoint 2010. This is the procedure how to change the default behaviour:
  1. Go to Central Administration
  2. Select Manage web applications
  3. Select the web application you want to modify
  4. In the Ribbon, click the General Settings button and select General Settings from the drop down menu
  5. In the section Browser file handling, select Permissive instead of Strict.
If you are using SharePoint 2010 for learning purposes, this is something you want to modify, otherwise all web content will be blocked. You need farm administrator rights to change this setting.

Friday, September 7, 2012

Central Administration asks for credentials on admin machine !!

Hi,

Did you ever faced issue/scenario when SharePoint 2010 Central Administration prompts for Credentials.
I stumbled across a quirky authentication issue when we enabled Kerberos on our Central Administration Web Applications for SharePoint 2010. Every time we launched Central Administration using the link provided on the start menu we would be prompted for credential entry..! even though i am on admin machine running Central admin as run as administrator.!!

Sometime its annoying while going on to SharePoint 2010 server and opening up central administration and again it asks for username & password..!

I did a trick on IE and i able to solve the issue. here it is:
Open Internet Explore. Go to  Internet Options -> Security -> Local Intranet -> Sites -> Advanced 
and add your central admin url. thats it!! Now it wont asks for password again..!

Contact me

Name

Email *

Message *

Total Pageviews