This error may occur if CausesValidation is set to true and databound controls (with custom validators based on the databound elements) have not yet been loaded. System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.TypeInitializationException: The type initializer for 'Wyndham.Ccfs.Web.Application.Factories.PagesConfigurationFactory' threw an exception. ---> System.Data.SqlClient.SqlException: Login failed. The login is from an untrusted domain and cannot be used with Windows authentication. at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection) at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection) at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection) at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) at System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry) at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry) at System.Data.SqlClient.SqlConnection.Open() at Sitecore.Data.DataProviders.Sql.DataProviderCommand..ctor(IDbCommand command, DataProviderTransaction transaction, Boolean openConnection) at Sitecore.Data.DataProviders.Sql.SqlDataApi.<>c__DisplayClass4.b__3() at Sitecore.Data.DataProviders.NullRetryer.Execute[T](Func`1 action, Action recover) at Sitecore.Data.DataProviders.Sql.SqlDataApi.<>c__DisplayClass12.b__10() at Sitecore.Data.DataProviders.NullRetryer.Execute[T](Func`1 action, Action recover) at Sitecore.Data.DataProviders.Sql.SqlDataApi.CreateReader(String sql, Object[] parameters) at Sitecore.Data.DataProviders.Sql.SqlDataProvider.GetChildIdsByName(String childName, ID parentId) at Sitecore.Data.DataProviders.Sql.SqlDataProvider.ResolvePathRec(String[] path, PathCache cache, CallContext context) at Sitecore.Data.DataProviders.Sql.SqlDataProvider.ResolvePathRec(String[] path, PathCache cache, CallContext context) at Sitecore.Data.DataProviders.DataProvider.ResolvePath(String itemPath, CallContext context, DataProviderCollection providers) at Sitecore.Nexus.Data.DataCommands.ResolvePathCommand.Execute(String š, Database ‡) at Sitecore.Data.Engines.EngineCommand`2.Execute() at Sitecore.Data.Managers.ItemProvider.GetItem(String itemPath, Language language, Version version, Database database, SecurityCheck securityCheck) at Sitecore.Data.Managers.PipelineBasedItemProvider.<>c__DisplayClass33.b__32() at Sitecore.Data.Managers.PipelineBasedItemProvider.ExecuteAndReturnResult[TArgs,TResult](String pipelineName, String pipelineDomain, Func`1 pipelineArgsCreator, Func`1 fallbackResult) at Sitecore.Data.Managers.ItemManager.GetItem(String itemPath, Language language, Version version, Database database) at Wyndham.Ccfs.Web.Application.Factories.PagesConfigurationFactory.InitiliaseFromLocalConfiguration(Database database, SiteInfo websiteDefinition) in C:\TFS2015\Release 1.2\src\Website\Wyndham.Ccfs.Web.Application\Factories\PagesConfigurationFactory.cs:line 110 at Wyndham.Ccfs.Web.Application.Factories.PagesConfigurationFactory.DoInitialisation() in C:\TFS2015\Release 1.2\src\Website\Wyndham.Ccfs.Web.Application\Factories\PagesConfigurationFactory.cs:line 103 at Wyndham.Ccfs.Web.Application.Factories.PagesConfigurationFactory.Initialise(Boolean isPublish) in C:\TFS2015\Release 1.2\src\Website\Wyndham.Ccfs.Web.Application\Factories\PagesConfigurationFactory.cs:line 79 at Wyndham.Ccfs.Web.Application.Factories.PagesConfigurationFactory..cctor() in C:\TFS2015\Release 1.2\src\Website\Wyndham.Ccfs.Web.Application\Factories\PagesConfigurationFactory.cs:line 69 --- End of inner exception stack trace --- at Wyndham.Ccfs.Web.Application.Factories.PagesConfigurationFactory.get_BookingSummaryPage() at Wyndham.Ccfs.Web.sublayouts.WyndhamCcfs.Components.Default.Fusion.AvailabilitySelector.Page_Load(Object sender, EventArgs e) in C:\TFS2015\Release 1.2\src\Website\Wyndham.Ccfs.Web\sublayouts\WyndhamCcfs\Components\Default\Fusion\AvailabilitySelector.ascx.cs:line 69 at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequest(HttpContext context) at Fusion.Web.Base.ToolKitPageBase`1.ProcessRequest(HttpContext _context)