WORK IN PROGRESS, GET THE STABLE SOURCE FROM THE DOWNLOADS TAB

Merging into main 4.1.0 branch:

Resolves a number of open issues, see associated WorkItems
- Fix WP crash on invalid connection string due to generation of XML cache on a separate thread
- Added option to generate xml cache file on local filesystem (in ASP.NET Temporary Files / CodeGenDir location) by adding <add key="umbracoContentXMLUseLocalTemp" value="true" /> to web.config file. This allows you to run from a SAN on a load-balanced environment whilst allowing each web node to have isolated copies of the xml cache file to avoid WP crashes due to multiple file locks
- Others in WorkItems :)

[TFS Changeset #64002]
This commit is contained in:
boxbinary
2010-02-16 04:12:10 +00:00
parent 8d18a04e62
commit bbf1a05681
10 changed files with 221 additions and 55 deletions

View File

@@ -232,7 +232,18 @@ namespace umbraco.presentation
else
error = "No Context available -> "
+ mApp.Context.Server.GetLastError().InnerException;
Log.Add(LogTypes.Error, User.GetUser(0), -1, error);
// Hide error if getting the user throws an error (e.g. corrupt / blank db)
User staticUser = null;
try
{
User.GetCurrent();
}
catch
{
}
Log.Add(LogTypes.Error, staticUser, -1, error);
Trace.TraceError(error);
lock (unhandledErrors)
{