admin
-
10/27/2005 8:27:19 AM
Re: Synchronization failing
Hi Chip,
this could be caused by the output filter. Could you please check that you have the latest global.asax.cx file in your project?
The Application_BeginRequest method should look like this:
public void Application_BeginRequest( object sender, EventArgs e ) { // Fires at the beginning of each request string specialFiles = ";searchresultredirect.aspx;getfile.aspx;newsletterunsubscribe.aspx;syncserver.asmx;scheduler.aspx;".ToLower(); if ( ( !( ConfigurationSettings.AppSettings[ "CMSSecuredAreasLogonPage" ] == null ) ) && ConfigurationSettings.AppSettings[ "CMSSecuredAreasLogonPage" ] != "" ) { string logonPage = ConfigurationSettings.AppSettings[ "CMSSecuredAreasLogonPage" ].Replace( "~/", "" ); specialFiles += logonPage.ToLower() + ";"; } string currentFile = Request.Path.ToLower().Substring( Request.Path.LastIndexOf( "/" ) + 1 ); if ( specialFiles.IndexOf( ";" + currentFile + ";" ) < 0 ) { Kentico.CMS.UrlRewritingEngine.UrlRewriter.RewriteUrl( Functions.GetConnectionString() ); Scheduler.StartInterval(); } if ( Request.Path.ToLower().IndexOf( "getfile.aspx" ) < 0 && Response.ContentType.ToLower() == "text/html" && Strings.InStr( HttpContext.Current.Request.Url.AbsolutePath.ToLower(), "/cmsdesk", (Microsoft.VisualBasic.CompareMethod)(0) ) == 0 && Request.Path.ToLower().IndexOf( "syncserver.asmx" ) < 0 ) { Response.Filter = new Kentico.CMS.CMSOutputFilter.OutputFilter( Response.Filter ); } }
|