Hi guys, hope someone out there can help us with this!
We've been setting up an Umbraco 4.5.2 install in a shared hosting environment, Binero.se web hosting. Everything has been running smooth, until recently we noticed no umbraco.config was created! This causes our publications to fall back to earlier texts, and being all inconcicstent. Anyway, to the point:
In our running configuration, in the web.config we have this standard line:
However, when we publish we get the following error message:
Xml wasn't saved: System.UnauthorizedAccessException: Access to the path
'C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET
Files\root\1e6562ff\2ebf6fae\UmbracoData\umbraco.config' 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, SECURITY_ATTRIBUTES secAttrs, String
msgPath, Boolean bFromProxy, Boolean useLongPath)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess
access, FileShare share)
at System.Xml.XmlDocument.Save(String filename)
at umbraco.content.PersistXmlToFile(XmlDocument xmlDoc)
We are running on shared hosting (Binero.se .NET 4)
Does anybody have an idea of why that obscure url is referred by Umbraco. Could it be some local temporary storage before saving to our app_data-folder? Can i config that away somehow?
I'm as system admin and totaly new to umbraco. I experience this same errormessage mentioned above
Xml wasn't saved: System.UnauthorizedAccessException: Access to the path 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\b9969c62\cd83bf51\UmbracoData\umbraco.config' 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, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath) 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) at System.Xml.XmlDocument.Save(String filename) at umbraco.content.PersistXmlToFile(XmlDocument xmlDoc)
My problems is that i cannot change this config value to false, because i was explicitely told this value had to be set to true for a loadbalnced environment where all the webserver look in a central (DFS replication) document root.
In Umbraco 4.5.2 the key does not have the expected result!
When using the key Umbraco will create an umbraco.config FOLDER in the ASP.NET temp root and it will try to write to this folder as if it were a file. Manually deleting the folder and creating an empty umbraco.config file will solve this.
The delete folder/create file must be done for every running umbraco website.
I am now clear of access issues with the umbraco.config file and hopefully also a lot of publishing errors!
The big question though: which version of Umbraco will create an umbraco.config file in stead of a folder?
"Xml wasn't saved", umbracoContentXML not used?
Hi guys, hope someone out there can help us with this!
We've been setting up an Umbraco 4.5.2 install in a shared hosting environment, Binero.se web hosting. Everything has been running smooth, until recently we noticed no umbraco.config was created! This causes our publications to fall back to earlier texts, and being all inconcicstent. Anyway, to the point:
In our running configuration, in the web.config we have this standard line:
However, when we publish we get the following error message:
Xml wasn't saved: System.UnauthorizedAccessException: Access to the path 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\1e6562ff\2ebf6fae\UmbracoData\umbraco.config' 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, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at System.Xml.XmlDocument.Save(String filename) at umbraco.content.PersistXmlToFile(XmlDocument xmlDoc)
We are running on shared hosting (Binero.se .NET 4)
Does anybody have an idea of why that obscure url is referred by Umbraco. Could it be some local temporary storage before saving to our app_data-folder? Can i config that away somehow?
All ideas are much welcome
Thanks
Niclas Lindqvist
Have you by any chance set this to true in your web.config:
I think that would do exactly what you describe.
Hi, you're spot on! I did do that.. So I'm gonna change that back then :P
Hi,
I'm as system admin and totaly new to umbraco. I experience this same errormessage mentioned above
Xml wasn't saved: System.UnauthorizedAccessException: Access to the path 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\b9969c62\cd83bf51\UmbracoData\umbraco.config' 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, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath) 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) at System.Xml.XmlDocument.Save(String filename) at umbraco.content.PersistXmlToFile(XmlDocument xmlDoc)
My problems is that i cannot change this config value to false, because i was explicitely told this value had to be set to true for a loadbalnced environment where all the webserver look in a central (DFS replication) document root.
Is there there a way to get this working with
<add key="umbracoContentXMLUseLocalTemp" value="true"/>
All help will be appriciated
Tom
Well, it sort of explains it in the exception message.
You need to grant access so that the AppPool account can write the cache file to the local temp folder:
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\b9969c62\cd83bf51\UmbracoData\umbraco.config
Morton,
This directory is atomaticly generated bij the DotNet framework, so i dont think it is smart to mess with the security in this directory
Also te user running umbraco already gets full control in this tree automaticly, so ACL rights do not seem to be the problem
Kind regards, Tom
Well I cannot see how it can be something other than that. The exceptions is pretty specific.
Strange had the same problem on my VPS today. After some Google work I found that running the iis reg tool might help and it actually did.
In Umbraco 4.5.2 the key does not have the expected result! When using the key Umbraco will create an umbraco.config FOLDER in the ASP.NET temp root and it will try to write to this folder as if it were a file. Manually deleting the folder and creating an empty umbraco.config file will solve this. The delete folder/create file must be done for every running umbraco website.
I am now clear of access issues with the umbraco.config file and hopefully also a lot of publishing errors!
The big question though: which version of Umbraco will create an umbraco.config file in stead of a folder?
BR, Hans
is working on a reply...