I am beginner in project server. I have a requirement like checkin the project programmatically. For this i called Checkin method of application object like as follow in button
click event of ribbon,
private void button2_Click(object sender, RibbonControlEventArgs e)
MSProject.Project prj = ThisAddIn.ApplicationObj.ActiveProject;
prj.Application.CheckIn(true, "No Comments", true);
When executing this method I was getting following error.
The method is not available in this situation.
What is the problem with this method calling at button click event?
Help is appreciated..