views:

390

answers:

0

I have recently installed VS 2010 beta2 and trying to execute the File.BatchNewTeamProject command as a process in my application. It worked fine in Beta1 but for some reason, I am getting an error regarding permissions to create new sharepoint sites. I am a member of Sharepoint web application services and Administrators groups.

Previously it opened a new instance of VS but gave an error in the status bar saying "the command is not available." This happened when I executed the devenv process with File.BatchNewTeamProject command as an argument and the project settings file. Then I tried adding a reference to Microsoft.VisualStudio.TeamFoundation.Client.dll and invoking the BatchCreateTeamProject() method but it returns a false value.

Can anyone explain how to use this method with an example?

Thanks, Tara.