help.axcms.net Axinom Logo

KB10049: Publishing fails because of missing CmsSite.xml

If an error message is received during publishing or unpublishing of documents, Key TemplatesRootDir may not defined in the web.config of the PublishService or there is no CmsSite.xml under this path.

SYMPTOMS

During publishing or unpublishing of documents you get similar exception:

Error: Unpublish failed for object photo_asdasd. System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.ApplicationException: PublishDocument error (DocumentID=317). Value cannot be null. Parameter name: path1 ---> System.ArgumentNullException: Value cannot be null. Parameter name: path1 at System.IO.Path.Combine(String path1, String path2) at Axinom.AECMS.CmsTemplates.CmsSite.get_FileName() at Axinom.AECMS.CmsTemplates.CmsSite.Load() at Axinom.Framework.Cache.CacheProvider.InitManager(ICachedManager manager) at Axinom.AECMS.document.AxDocumentFileManager.DeleteFormattedImages(AxDocument doc, String uploadRootDir) at Axinom.AECMS.Publish.PublishingDocument.Publish(AxDocument document, Byte[] content, DataTable classifications, DataTable relations, PublishServiceConfiguration configuration, IConnectionManager manager) at Axinom.AECMS.Publish.PublishService.PublishDocument(Byte[] document, Byte[] content, DataSet classificationsDS, DataSet relations) --- End of inner exception stack trace --- at Axinom.AECMS.Publish.PublishService.PublishDocument(Byte[] document, Byte[] content, DataSet classificationsDS, DataSet relations) at AxCMS.Publish.PublishWebService.PublishDocument(Byte[] document, Byte[] content, DataSet classifications, DataSet relations) --- End of inner exception stack trace ---

CAUSES

Key TemplatesRootDir is not defined in the web.config of the PublishService or there is no CmsSite.xml under this path.

SOLUTION

Add the key TemplatesRootDir same way as in the LS web.config.

If your PublishService run on a different server than the live system, deploy the Templates-folder (or at least CmsSite.xml) to this server and let TemplatesRootDir to point to this location.

MORE INFORMATION:

From AxCMS.net 9.2 image formats definition is needed for the publish service to treat the documetns correctly. This information is available only from CmsSite.xml. Previously it was not needed for the publish service to access CmsSite.xml.

APPLIES TO

AxCMS.net Version: 9.2 and above