Skip to content

SqlProgrammabilityProvider design-time: "The given key was not present in the dictionary" and then "No constructors are available" the first time an sproc is used until project reload #379

@cmeeren

Description

@cmeeren

The first time I use an sproc in code using SqlProgrammabilityProvider, I often get the following error:

The given key was not present in the dictionary

image

Then after some seconds, it changes to this error:

No constructors are available for the type

image

This happens even when I get Intellisense autocompletion for the sproc name.

If I remove it and retype it, I only get the second error ("no constructors ...").

The error disappears after project reload (I usually just make an edit to the fsproj and save, and revert and save again to reload the project without losing the open documents).

If it's relevant, my connection strings are

Data Source=.\\SQLEXPRESS;
Initial Catalog=MY_DB_NAME;
Integrated Security=True"

I haven't always gotten the errors, but I seem to consistently get the error for the project I'm working on now.

Unfortunately I don't have a solid repro. Let me know if I can be of further help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions