If I remove the Global.asax file it runs perfectly. I removed parts of the file until I determined what was the cause. Apparently if include the following it will not load. This procedure is required to maintain our security. Is there something in here that causes an issue when loading the control?
Private Sub Global_AcquireRequestState(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.AcquireRequestState
' Set the security principal to our BusinessPrincipal
If Not Session("CSLA-Principal") Is Nothing Then
Thread.CurrentPrincipal = Session(
"CSLA-Principal")
HttpContext.Current.User = Session(
"CSLA-Principal")
ElseIf User.Identity.Name Is Nothing Then
If Thread.CurrentPrincipal.Identity.IsAuthenticated Then
Web.Security.FormsAuthentication.SignOut()
Server.Transfer(
"Login.aspx")
End If
Else
If Thread.CurrentPrincipal.Identity.IsAuthenticated Then
Web.Security.FormsAuthentication.SignOut()
Server.Transfer(
"Login.aspx")
End If
End If
End Sub