diff --git a/BeWoPlanerMobil/Controllers/ReportViewerController.cs b/BeWoPlanerMobil/Controllers/ReportViewerController.cs index fe6c0bc4f..02afc4606 100644 --- a/BeWoPlanerMobil/Controllers/ReportViewerController.cs +++ b/BeWoPlanerMobil/Controllers/ReportViewerController.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.IO; using System.Linq; using System.Web.Mvc; using BeWo.Report; @@ -285,12 +286,13 @@ namespace BeWoPlanerMobil.Controllers private static AbstractReportCreator GetReportCreator() { - var creator = PluginLoader.FindClass(); - + AbstractReportCreator creator = PluginLoader.FindClass() ?? new DefaultReportCreator(); + + var mobileBaseDirectory = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, @"..\Host\"); #if DEBUG - creator.TempPath = BS.Shared.Core.Utils.CreateSavePath(AppDomain.CurrentDomain.BaseDirectory, @"demo\temp"); + creator.TempPath = BS.Shared.Core.Utils.CreateSavePath(mobileBaseDirectory, @"demo\temp"); #else - creator.TempPath = BS.Shared.Core.Utils.CreateSavePath(AppDomain.CurrentDomain.BaseDirectory, PluginLoader.Tenant + @"\temp"); + creator.TempPath = BS.Shared.Core.Utils.CreateSavePath(mobileBaseDirectory, PluginLoader.Tenant + @"\temp"); #endif return creator; } diff --git a/BeWoPlanerMobil/Views/Main/Main.cshtml b/BeWoPlanerMobil/Views/Main/Main.cshtml index da042e572..06a8c6b08 100644 --- a/BeWoPlanerMobil/Views/Main/Main.cshtml +++ b/BeWoPlanerMobil/Views/Main/Main.cshtml @@ -599,7 +599,7 @@ var test = $.parseJSON(data); }); } catch (error) { - + showErrorPopup(error); } } @@ -611,7 +611,7 @@ {
-
+
diff --git a/BeWoPlanerMobil/Web.config b/BeWoPlanerMobil/Web.config index 27d54b352..9d1992036 100644 --- a/BeWoPlanerMobil/Web.config +++ b/BeWoPlanerMobil/Web.config @@ -147,10 +147,8 @@ - - - - + +