From 57b89a60e698ceff2a2f93c9f5ef1655be3cc159 Mon Sep 17 00:00:00 2001 From: Michael Washington Date: Thu, 14 Nov 2019 05:37:21 -0800 Subject: [PATCH 1/4] Adds DetailedErrors when debugging --- Oqtane.Server/appsettings.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Oqtane.Server/appsettings.json b/Oqtane.Server/appsettings.json index 8138a005..ac36fa44 100644 --- a/Oqtane.Server/appsettings.json +++ b/Oqtane.Server/appsettings.json @@ -1,6 +1,6 @@ { "ConnectionStrings": { - "DefaultConnection": "" + "DefaultConnection": "Data Source=(Local);Initial Catalog=Oqtane;Integrated Security=SSPI;" } } @@ -17,3 +17,4 @@ + From 5d3017412f8a2635e9001034252b4ec4db8525a8 Mon Sep 17 00:00:00 2001 From: Michael Washington Date: Thu, 14 Nov 2019 05:42:06 -0800 Subject: [PATCH 2/4] Adds DetailedErrors --- Oqtane.Server/Startup.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Oqtane.Server/Startup.cs b/Oqtane.Server/Startup.cs index 3d5a8497..43d92a2a 100644 --- a/Oqtane.Server/Startup.cs +++ b/Oqtane.Server/Startup.cs @@ -50,8 +50,12 @@ namespace Oqtane.Server public void ConfigureServices(IServiceCollection services) { services.AddRazorPages(); +#if DEBUG + services.AddServerSideBlazor().AddCircuitOptions(options => { options.DetailedErrors = true; }); +#endif +#if RELEASE services.AddServerSideBlazor(); - +#endif // setup HttpClient for server side in a client side compatible fashion ( with auth cookie ) if (!services.Any(x => x.ServiceType == typeof(HttpClient))) { From 6fba110c2a00954755c7263ee0ad6753dd34598e Mon Sep 17 00:00:00 2001 From: Michael Washington Date: Thu, 14 Nov 2019 05:48:26 -0800 Subject: [PATCH 3/4] Reset appsettings --- Oqtane.Server/appsettings.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Oqtane.Server/appsettings.json b/Oqtane.Server/appsettings.json index ac36fa44..cc2b90b0 100644 --- a/Oqtane.Server/appsettings.json +++ b/Oqtane.Server/appsettings.json @@ -1,6 +1,6 @@ { "ConnectionStrings": { - "DefaultConnection": "Data Source=(Local);Initial Catalog=Oqtane;Integrated Security=SSPI;" + "DefaultConnection": "" } } From 241a2d97a3c8992033c065388d2fb5ae07a22385 Mon Sep 17 00:00:00 2001 From: Michael Washington Date: Thu, 14 Nov 2019 05:49:37 -0800 Subject: [PATCH 4/4] Remove spaces from appsettings --- Oqtane.Server/appsettings.json | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/Oqtane.Server/appsettings.json b/Oqtane.Server/appsettings.json index cc2b90b0..dbfefb7f 100644 --- a/Oqtane.Server/appsettings.json +++ b/Oqtane.Server/appsettings.json @@ -2,19 +2,4 @@ "ConnectionStrings": { "DefaultConnection": "" } -} - - - - - - - - - - - - - - - +} \ No newline at end of file