I am get an error,
------
An unhandled exception of type 'System.Exception' occurred in vaultclientoperationslib.dll
Additional information: Updating the working folder failed for the following files:
$/Northwind/[dbo].[SalesByCategory].sql (invalid EOL specified!)
-------
this is the function that fire it.
-----
private void CheckInBtn_Click(object sender, System.EventArgs e)
{
string LTempStr = "";
if(m_Client.TreeCache.Repository.Root.FindFolderRecursive(FolderTree.SelectedNode.FullPath) != null)
{
if(m_Client.TreeCache.Repository.Root.FindFileRecursive(FolderTree.SelectedNode.FullPath + FolderTree.PathSeparator + FileNameEdit.Text) != null)
{
VaultClientFile LFile = m_Client.TreeCache.Repository.Root.FindFileRecursive(FolderTree.SelectedNode.FullPath + FolderTree.PathSeparator + FileNameEdit.Text);
if(m_Client.IsCheckedOutByMeOnAnyMachine(LFile))
{
m_Client.Refresh();
ChangeSetItemColl LTempItemSet = new ChangeSetItemColl();
foreach (ChangeSetItem LChangeSetItem in m_Client.InternalChangeSet_GetItems(false))
{
if(LChangeSetItem.DisplayRepositoryPath.ToString() == FolderTree.SelectedNode.FullPath + FolderTree.PathSeparator + FileNameEdit.Text)
{
LChangeSetItem.Comment = "";
LTempItemSet.Add(LChangeSetItem);
}
}
if(m_Client.Commit(LTempItemSet, false, false))
{
LTempStr = "Successfully checkedin object " + FileNameEdit.Text + ".";
}
else
{
LTempStr = "Failed to checkin object " + FileNameEdit.Text + ".";
}
}
else
{
LTempStr = "You do not have object " + FileNameEdit.Text + " checked out.";
}
}
else
{
LTempStr = "Object " + FileNameEdit.Text + " does not exist.";
}
}
else
{
LTempStr = "The repository path " + FolderTree.SelectedNode.FullPath + " does not exist.";
}
MessageEdit.AppendText(LTempStr + "\n");
}
-----
I am using teh curretn version 3.0.7 API
I have attached the test application,
Check In
Moderator: SourceGear