Monday, February 28, 2011

Rename SP webapplication host header

1. Use F5 or any external load balancing hardware to setup redirection between old hostheader and new host header using i-rules.
2. Using AAM (Alternate Access Mappings) on sharepoint side.


Sunday, February 27, 2011

Configure LiveID SP 2010 federated authentication

Custom login webpart SharePoint 2010 FBA Claims Internal 500 error Signout


1. Configure FBA (web.config, web application settings) on SP 2010 farm

2. Create a VS 2010 SP Visual webpart

3. Add asp:login control.
" OnAuthenticate="AuthenticateUser"
runat="server" >

4. OnAuthenticate event handler,

string membershipProvider = "aspnetmembershipprovider";
string roleProvider = "aspnetroleprovider";

e.Authenticated = SPClaimsUtility.AuthenticateFormsUser(
new Uri(SPContext.Current.Web.Url),

if (!e.Authenticated) return;

SecurityToken secTk = SPSecurityContext.SecurityTokenForFormsAuthentication(webUri, membershipProvider, roleProvider, LoginControl.UserName, LoginControl.Password);
if (secTk == null)

e.Authenticated = false;

SPFederationAuthenticationModule fam = SPFederationAuthenticationModule.Current;
e.Authenticated = true;

SPUtility.Redirect(SPContext.Current.Web.Url,SPRedirectFlags.Trusted , this.Context);


5. Deploy code.

6. Add webpart to content page.

7. Set content page as default login page under web application authentication settings for FBA

8. Make sure webapplication and site collection have annonymous turned ON.

9. Test by navigating to home page of site collection. It should auto-redirect to content page with login webpart.

10.Test login with aspnetdb user login and password information.

6. Once user is logged in, click ootb Signout button and no INTERNAL 500 ERROR should occur, it should successfully navigate to login content page.

Post comments if you have questions.

Saturday, February 26, 2011

Friday, February 25, 2011

SP2010 Blog

I need a self owned SP 2010 blog.. !! I want to get it setup and fully functional by end of the year.

Thursday, February 24, 2011

IIS Smooth streaming - Silverlight

Monday, February 21, 2011

mvvm silverlight

silverlight mvvm

tutorial silverlight tabbed tabcontrol tab form

Good silverlight startup vide

1. Create simple controls
2. Bind data
3. Use WCF service to pull data from database.

Tuesday, February 8, 2011

SharePoint 2007 modify edit alert templates