Merge branch 'master' into feature_rene_17_xrechnung

# Conflicts:
#	BeWo/BeWo.csproj
#	Host/Web.config
This commit is contained in:
2025-06-23 10:07:03 +02:00
69 changed files with 4880 additions and 483 deletions

View File

@@ -26,6 +26,7 @@ using BeWo.Service.OwnChat;
using BeWo.Service.Plugins;
using BeWo.Data.Security;
using System.Collections.Specialized;
using System.IO;
using BeWoFault = BS.Shared.Core.BeWoFault;
using BeWoFaultType = BS.Shared.Core.BeWoFaultType;
@@ -585,6 +586,17 @@ namespace BeWo.Service.ServiceImplementations
}
catch (Exception e)
{
var dir = @"C:\BeWoPlaner\service\Host\logs";
if (Directory.Exists(dir))
{
File.AppendAllText(Path.Combine(dir, "WCFSessionError.txt"), $"SessionFactory get {DateTime.Now:dd.MM.yyyy HH:mm:ss}" + "\n" + e.Message + "\n" + e.StackTrace);
if (e.InnerException != null)
{
File.AppendAllText(Path.Combine(dir, "WCFSessionError.txt"), $"SessionFactory get {DateTime.Now:dd.MM.yyyy HH:mm:ss}" + "\n" + e.InnerException.Message + "\n" + e.InnerException.StackTrace);
}
}
//String path = System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "bwp.txt");
//System.IO.File.AppendAllText(path, String.Format("{0:dd.MM.yyyy HH:mm:ss}", DateTime.Now) + "\n" + e.Message + "\n" + e.StackTrace);
//throw(BeWo.Service.Core.Utils.CreateBeWoFaultException(e));