using WCSF framework , goterror :
Unable to cast object of type 'System.Web.HttpApplication' to type 'Microsoft.Practices.CompositeWeb.WebClientApplication'.
Step 1: open Global.asax File
Change Inherit pageto Microsoft.Practices.CompositeWeb.WebClientApplication
Like:
<%@ Application Codebehind="Global.asax.cs" Inherits="Microsoft.Practices.CompositeWeb.WebClientApplication" Language="C#" %>