visual studio 2012 - ItemNotMappedException: There is no working folder mapping for XYZ -


i exception throught versioncontrolonnonfatalerror-eventhandler following content:

"there no working folder mapping c:\sqlworkspace."

i have indeed mapping on machine. because of this, wonder whats wrong.

this workspace definition

the error provoked on line "workspace.pendadd(pc.localitem);" pc.localitem contains "c:\sqlworkspace\audits.sql"

workspace.folders contains: localitem: "c:\sqlworkspace serveritem: $/code/y_test/sqlhistorynew type: map}"

why error, settings , parameters seems ok? other questions mine gave me no hints, have been useful.

i found solution. have call "workstation.ensureupdateworkspaceinfocache()" before pendadd / penddelete / ... call.

the result is: no error , therefore getpendingchanges() contains promoted files.

i found solution on site: http://social.msdn.microsoft.com/forums/vstudio/en-us/96a8e35d-1f84-4ac3-8767-e3682dd75e1a/problem-with-pendadd?forum=tfsversioncontrol


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -