Open adarsh-lpinfotech opened 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
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