Visual Studio: dbType NvarChar is not valid for this constructor (Team Foundation Server).

I have a web project project (css, html, angularJS and more JS libS) hosted in Microsoft TFS, and it has been working fine so far, but today, when we tried to get the latest information about the project. We continue to receive the following error "DbType NvarChar is not valid for this constructor . " If we try to get the latest information about a single element that does not have pending changes, it works fine, but as soon as we try to get the latest data on several elements, at least one of them has pending changes, an error occurs.

I tried disconnecting / reconnecting TFS, clearing the VS cache (local and roaming), but all these operations did not help.

enter image description here

+5
source share
5 answers

I think this is a problem with VSO.

Currently, I have found a workaround:

  • go to Source Control Explorer
  • do Get Latest Version from there

It should work without problems.

+5
source

If you get a new workspace, it will allow you to get the latest changes. But, the best so far we have come up with.

0
source

I had the same problem and it disappeared after I checked my own pending changes and allowed the workspace.

So at least this is what worked for me:

  • Getting the error "The dbType NvarChar is invalid for this constructor" when trying to get the latest data from TFS.

  • Check out my pending changes.

  • After successful closed registration, click Resolve Workspace .

  • The problem with DbType is gone!

NTN

0
source

For us, this is due to conflicting editing of the Entity Framework in the project file. In our scenario, the table is added to the EF map in the original control, and the project file is updated by developer 1. If developer 2 has editing the project file and receives the latest version, an error occurs. If you cancel your changes in the project file, you will get the latest work without dropping the error dialog box.

0
source

You need to check your pending changes and resolve conflicts (also check for changes after resolving the conflicts). Then use the last function.

0
source

Source: https://habr.com/ru/post/1244225/


All Articles