Share this page

Wednesday, January 21, 2009

Variaciones Sharepoint 2007 errores con autenticación Forms


Today we were fighting with Santiago and Javier in an error caused by the variations in Sharepoint 2007 in a portal with authentication forms (FBA). During this fight we were received the following errors:

  • Tipo de excepción: HttpException
        Mensaje de la excepción: El servidor no puede modificar cookies después de enviar los encabezados HTTP.
  • System.Web.HttpCookieCollection.Add(HttpCookie cookie)
       en System.Web.Security.RoleManagerModule.OnLeave(Object source, EventArgs eventArgs)
       en System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       en System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
  • Exception information:
    Exception type: HttpException
    Exception message: Cannot redirect after HTTP headers have been sent.
    at System.Web.HttpResponse.Redirect(String url, Boolean endResponse)
    at System.Web.Security.FormsAuthenticationModule.OnLeave(Object source, EventArgs eventArgs)
    at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
    at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

When we tried to access the site we received the following message “401 UNAUTHORIZED” and we found the solution for this problem in and we solved the issue putting the attribute “batch=false” in the web.config of application web.

Santiago, Javier y Fabián

No comments: