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.
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
Post a Comment