Technical support This forum is closed.
Version 1.x > Technical support > Synchronization failing View modes: 
User avatar
Member
Member
cpaul - 10/25/2005 5:26:13 PM
   
Synchronization failing
When I try to synchronize, I get the following short and cryptic message:

The tag from namespace is not expected. Line 1, position 2.

This is in the synchronization log.

User avatar
Guest
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 );
}
}