But I have this problem, when I publish form external library outside Umbraco CMS (i use only core libraries).
My solution:
I create RefreshContent.ashx in umbraco and after publish I call it from external library. Umbraco after it refresh this file: *\UmbracoCms.7.2.1\UmbracoCms.7.2.1\App_Data\umbraco.config (call http://localhost:52000/RefreshContent.ashx)...
public class RepublishAll : IHttpHandler
{
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/plain";
context.Response.Write("Ok.");
umbraco.library.RefreshContent();
}
public bool IsReusable
{
get
{
return false;
}
}
Another solutions is "handmade", right mouse button in CONTENT in the Umbraco CMS backend and press "publish entire site"... But it's not automatish solution...
Or you can delete *\UmbracoCms.7.2.1\UmbracoCms.7.2.1\App_Data\umbraco.config and restart web application...
Problem with publishing
Hello,
i connect to Umbraco CMS by core Umbraco libraries from external application.
When i publish content by:
Attempt status = contentService.SaveAndPublishWithStatus(newPage);
status returned as 100% ok.
But new content in Umbraco has error (Oops: this document is published but is not in the cache (internal error)):
Hi Petr
What exact version of Umbraco 7 are you using?
Untill the 7.1.0 release it was a known issue http://issues.umbraco.org/issue/U4-3145 /Jan
I use 7.2.1.
But I have this problem, when I publish form external library outside Umbraco CMS (i use only core libraries).
My solution:
I create RefreshContent.ashx in umbraco and after publish I call it from external library. Umbraco after it refresh this file: *\UmbracoCms.7.2.1\UmbracoCms.7.2.1\App_Data\umbraco.config (call http://localhost:52000/RefreshContent.ashx)...
Another solutions is "handmade", right mouse button in CONTENT in the Umbraco CMS backend and press "publish entire site"... But it's not automatish solution...
Or you can delete *\UmbracoCms.7.2.1\UmbracoCms.7.2.1\App_Data\umbraco.config and restart web application...
is working on a reply...