jasontaylordev / RapidBlazor

Clean Architecture Solution Template for Blazor WebAssembly .NET 7
MIT License
295 stars 54 forks source link

Issue while running the project without database #18

Open adarsh-lpinfotech opened 10 months ago

adarsh-lpinfotech commented 10 months ago

Hi, I am facing an issue while running the project for the first time after i delete the existing database. The code throws an exception in the following method in "SqlClientDiagnosticSourceListener" class :

private static void ConfigureExceptionTelemetry(DependencyTelemetry telemetry, Exception exception, PropertyFetcher numberFetcher) { telemetry.Success = false; telemetry.Properties["Exception"] = exception.ToInvariantString(); try { telemetry.ResultCode = ((int)numberFetcher.Fetch(exception)).ToString(CultureInfo.InvariantCulture); } catch (Exception) { } }

If i continue here then the database gets created. Next time when i run the code, i didn't get the error until i delete the database again.

Will be grateful for any help in this.

Thanks image