Hi,
I have recently upgraded to 7.4.1 and when I try to update a Template I get the following error. (I have set the permissions to the relevant folders on the site).
Umbraco.Web.WebServices.SaveFileController : An error occurred saving a file. Please make sure that you do not have 2 templates with the same alias
System.UnauthorizedAccessException: Access to the path 'D:\inetpub\wwwroot\LVRP-MultiSite\Views\LeeValleyFarms.cshtml' is denied.
at System.IO._Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITYATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize)
at Umbraco.Core.IO.PhysicalFileSystem.AddFile(String path, Stream stream, Boolean overrideIfExists)
at Umbraco.Core.IO.ViewHelper.UpdateViewFile(ITemplate t, String currentAlias)
at Umbraco.Core.Persistence.Repositories.TemplateRepository.PersistUpdatedItem(ITemplate entity)
at Umbraco.Core.Cache.FullDataSetRepositoryCachePolicy2.CreateOrUpdate(TEntity entity, Action1 persistMethod)
at Umbraco.Core.Persistence.Repositories.RepositoryBase2.PersistUpdatedItem(IEntity entity)
at Umbraco.Core.Persistence.UnitOfWork.PetaPocoUnitOfWork.Commit(Action1 transactionCompleting)
at Umbraco.Core.Services.FileService.SaveTemplate(ITemplate template, Int32 userId)
at umbraco.cms.businesslogic.template.Template.Save()
at Umbraco.Web.WebServices.SaveFileController.SaveTemplate(String templateName, String templateAlias, String templateContents, Int32 templateId, Int32 masterTemplateId)
Have you checked the template aliases in the "Settings -> Templates" section for each of your templates to see if there are any duplicate aliases as the error message suggests?
How did you do the upgrade and from, which version?
Error saving Templates
Hi, I have recently upgraded to 7.4.1 and when I try to update a Template I get the following error. (I have set the permissions to the relevant folders on the site).
Umbraco.Web.WebServices.SaveFileController : An error occurred saving a file. Please make sure that you do not have 2 templates with the same alias System.UnauthorizedAccessException: Access to the path 'D:\inetpub\wwwroot\LVRP-MultiSite\Views\LeeValleyFarms.cshtml' is denied. at System.IO._Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITYATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize) at Umbraco.Core.IO.PhysicalFileSystem.AddFile(String path, Stream stream, Boolean overrideIfExists) at Umbraco.Core.IO.ViewHelper.UpdateViewFile(ITemplate t, String currentAlias) at Umbraco.Core.Persistence.Repositories.TemplateRepository.PersistUpdatedItem(ITemplate entity) at Umbraco.Core.Cache.FullDataSetRepositoryCachePolicy2.CreateOrUpdate(TEntity entity, Action1 persistMethod) at Umbraco.Core.Persistence.Repositories.RepositoryBase2.PersistUpdatedItem(IEntity entity) at Umbraco.Core.Persistence.UnitOfWork.PetaPocoUnitOfWork.Commit(Action1 transactionCompleting) at Umbraco.Core.Services.FileService.SaveTemplate(ITemplate template, Int32 userId) at umbraco.cms.businesslogic.template.Template.Save() at Umbraco.Web.WebServices.SaveFileController.SaveTemplate(String templateName, String templateAlias, String templateContents, Int32 templateId, Int32 masterTemplateId)
Jon
Hi Jonathan
Have you checked the template aliases in the "Settings -> Templates" section for each of your templates to see if there are any duplicate aliases as the error message suggests?
How did you do the upgrade and from, which version?
/Jan
is working on a reply...