Skip to content

Issue while running the project without database #18

@adarsh-lpinfotech

Description

@adarsh-lpinfotech

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions