Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
The site is an umbraco v6.1.6 site and the usync version is v1.6.
First, I'll give you some background. We recently had some issues with usync where our staging site was out of sync with our production site. When we attempted to deploy, we would get errors. I pulled the production site and db local, and decided to figure out where the problem was. The first thing I noticed is that before the actual YSOD is thrown (likely because of a prevalue problem), I get tons of the following type of error. I would like to resolve these, so they don't fill up my logs. I am not yet certain if usync is actually failing at importing any templates.
The following is the INFO log I get. The INFO is about an ERROR. I have shortened the log entry with the '...', but the whole template markup is in the log. I'm not certain, but I think I get this message for every View in the site. This error does not result in a YSOD.
2015-04-20 19:18:35,285  DEBUG Umbraco.Core.Sync.DefaultServerMessenger - [Thread 12] Invoking refresher Umbraco.Web.Cache.TemplateCacheRefresher on single server instance, message type RefreshById
2015-04-20 19:18:35,287  INFO jumps.umbraco.usync.uSync - <log4net.Error>Exception during StringFormat: Input string was not in a correct format. <format>[Thread 12] Importing template D:\mysite.com\uSync\Template\BasicPage\_uBlogsyBaseBlog\uBlogsyLanding <Name>Blog Landing</Name><Alias>uBlogsyLanding</Alias><Master>_uBlogsyBaseBlog</Master><Design><![CDATA[@inherits Umbraco.Web.Mvc.UmbracoTemplatePage
Layout = "_uBlogsyBaseBlog.cshtml";
Any ideas on what the deal with the string format is or how I can resolve it? Has anyone seen this before?
the StringFormat error is because uSync isn't passing the right amount of arguments to the logger, so it's not an import error on it's own, but it doesn't help much when it comes to fixing it.
It all may be working as expected, and this is just a logging error ...
If the template already exists in umbraco and on disk then the uSync import will not overwrite the contents of the template file. All usync does in these circumstances is set the template values that are in the Database (Name, Alias and Parent) everything else that is in the template file on disk is left as is. - you need to bring the views folder over as part of any sync.
I will go hunting through the code and find that rouge logline and fix it. because it's right confusing...
Can you confirm what version of the jumps.umbraco.usync.dll you have, because i thought i had removed that line in the v1.6
I right clicked and clicked Properties->Details and found that both the Product Version and File Version were 126.96.36.199. I upgraded usync to v1.6 via nuget. However, the 1.6 nuget package isn't listed here https://www.nuget.org/packages/uSync/. Not sure if that is relevant.
Thanks for the quick diagnosis. I'll just disable the template importing for the time being. That should allow me to move forward. Let me know when the fix has been made.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted