TFPT.EXE CreateTeamProject - TF30155: Error occurred while trying to create project - visual-studio

I am using the command -
tfpt.exe createteamproject /collection:url /teamproject:"Projectname" /processtemplate:CMMI /noportal
from command prompt to create a new Team project in Visual Studio Team services(VSTS).
In VSTS I have created a free trial account and using this url and credentials to create the team project.
When I run the above command in command prompt I get an error exception. Detailed log is attached below.
Please note- I do not have any developer/programming background, I am just looking to automate this task using powershell
I have visual studio 2013 and TFS 2013 power tools installed on the machine where I am running this command.
Has anyone seen this error before?
C:\Windows\system32>tfpt.exe createteamproject /collection:https://hmsutar.visualstudio.com/defaultcollection /teamproject:Mycode /processtemplate:scrum /noportal
All provided settings are valid.
---begin Exception entry---
Exception Type: Microsoft.TeamFoundation.Client.PcwException
Exception Message: The Project Creation Wizard encountered an error while creating the project structure on hmsutar.visualstudio.com\DefaultCollection.
Exception Details:
-- Inner Exception --
Exception Message: The requested operation is not allowed. (type SoapException
SoapException Details: <detail ServerTimeStamp="2016-03-16T09:56:11:045" ExceptionMessage="The requested operation is not allowed." BaseExceptionName="Microsoft.TeamFoundation.TeamFoundationServerException" />
Exception Stack Trace: at Microsoft.TeamFoundation.Proxy.CommonStructureService.CreateProject(String projectName, XmlElement structure)
--- end Exception entry ---
---begin Exception entry---
Exception Message: TF200016: The following project does not exist: Mycode. Verify that the name of the project is correct and that the project exists on the specified Team Foundation Server. (type SoapException)SoapException Details: <det
l ServerTimeStamp="2016-03-16T09:56:11:873" ExceptionMessage="TF200016: The following project does not exist: Mycode. Verify that the name of the project is correct and that the project exists on the specified Team Foundation Server." BaseexceptionName="Microsoft.TeamFoundation.Core.WebApi.ProjectException" />
Exception Stack Trace:at Microsoft.TeamFoundation.Proxy.CommonStructureService.GetProjectFromName(String projectName)
--- end Exception entry ---
2016-03-16T02:56:12 | Module: BatchTeamProjectCreator | Thread: 1 | Microsoft.visualStudio.TeamFoundation.PCW.ProjectCreationException: The Project Creation Wizard encountered an error while creating the project structure on hmsutar.visualstudio.com\DefaultCollection. ---> Microsoft.TeamFoundation.Client.PcwException
The Project Creation Wizard encountered an error while creating the project structure on hmsutar.visualstudio.com\DefaultCollection. ---> System.Web.Services.protocols.SoapException: The requested operation is not allowed.
--- End of inner exception stack trace ---
--- End of inner exception stack trace ---
Log file has been created at "C:\Users\Student\AppData\Local\Temp\Mycode.log".
Check the log for detailed results.
Logs
-----from log file--
2016-03-16T02:56:10 | Module: CssStructureUploader | Thread: 5 | Uploading CSS structure: "<Nodes><Node StructureType="ProjectLifecycle" Name="Iteration" xmlns=""><Children><Node StructureType="ProjectLifecycle" Name="Sprint 1" /><Node StructureType="ProjectLifecycle" Name="Sprint 2" /><Node StructureType="ProjectLifecycle" Name="Sprint 3" /><Node StructureType="ProjectLifecycle" Name="Sprint 4" /><Node StructureType="ProjectLifecycle" Name="Sprint 5" /><Node StructureType="ProjectLifecycle" Name="Sprint 6" /></Children></Node><Node StructureType="ProjectModelHierarchy" Name="Area" xmlns="" /></Nodes>"
2016-03-16T02:56:10 | Module: CssStructureUploader | Thread: 5 | Creating Project : Mycode
2016-03-16T02:56:11 | Module: CssStructureUploader | Thread: 5 | TF30155: Error occurred while trying to create project : "Mycode"
---begin Exception entry---
Time: 2016-03-16T02:56:11
Module: Engine
Event Description: TF30162: Task "UploadStructure" from Group "Classification" failed
Exception Type: Microsoft.TeamFoundation.Client.PcwException
Exception Message: The Project Creation Wizard encountered an error while creating the project structure on hmsutar.visualstudio.com\DefaultCollection.
Exception Details:
The Project Creation Wizard encountered a problem while creating the project structure on hmsutar.visualstudio.com\DefaultCollection.
The reason for the failure cannot be determined at this time.
Because the operation failed, the wizard was not able to finish
creating the Team Project.
Stack Trace:
at Microsoft.VisualStudio.TeamFoundation.PCW.CssStructureUploader.Execute(ProjectCreationContext context, XmlNode taskXml)
at Microsoft.VisualStudio.TeamFoundation.PCW.ProjectCreationEngine.TaskExecutor.PerformTask(IProjectComponentCreator componentCreator, ProjectCreationContext context, XmlNode taskXml)
at Microsoft.VisualStudio.TeamFoundation.PCW.ProjectCreationEngine.RunTask(Object taskObj)

For Visual Studio Team Servives, you need to use the Web UI or the REST Api to create a new Team project. The API Reference can be found here:
https://www.visualstudio.com/en-us/integrate/api/tfs/projects#Createateamproject
To pass the correct Process template ID you can query the available process templates here:
https://www.visualstudio.com/integrate/api/tfs/processes#Getalistofprocesses
A simple powershell script or a small Console appliation would allow you to call these from the commandline. A small template and creative use of Curl or wget might also work.

Related

Visual Studio Publish throws "MSB4018 The "ResolvePackageDependencies" task failed unexpectedly."

I have a project that I used to deploy as a single executable, but I am no longer able to as the Publish process throws while trying to resolve the nugest. The project builds fine during the publish process and it also runs fine from visual studio.
My publish results:
========== Build: 7 succeeded, 0 failed, 1 up-to-date, 0 skipped ==========
========== Publish: 0 succeeded, 1 failed, 0 skipped ==========
I get a popup with this error:
08/12/2021 21:35:26
System.AggregateException: One or more errors occurred. ---> Microsoft.WebTools.Shared.Exceptions.WebToolsException: Publish has encountered an error. We were unable to determine the cause of the error. Check the output log for more details.
--- End of inner exception stack trace ---
---> (Inner Exception #0) Microsoft.WebTools.Shared.Exceptions.WebToolsException: Publish has encountered an error. We were unable to determine the cause of the error. Check the output log for more details. <---
Microsoft.WebTools.Shared.Exceptions.WebToolsException: Publish has encountered an error. We were unable to determine the cause of the error. Check the output log for more details.
===================
And in the Error view I get this:
Severity Code Description Project File Line Suppression State
Error MSB4018 The "ResolvePackageDependencies" task failed unexpectedly.
System.ArgumentException: Invalid framework version '3.1/win-x64'.
at NuGet.Frameworks.NuGetFramework.ParseFrameworkNameParts(IFrameworkNameProvider mappings, String[] parts, String& framework, Version& version, String& profile)
at NuGet.Frameworks.NuGetFramework.ParseFrameworkName(String frameworkName, IFrameworkNameProvider mappings)
at NuGet.Frameworks.NuGetFramework.Parse(String folderName, IFrameworkNameProvider mappings)
at Microsoft.NET.Build.Tasks.ResolvePackageDependencies.<GetPackageAndFileDefinitions>b__48_5(String tg)
at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
at System.Linq.Enumerable.Contains[TSource](IEnumerable`1 source, TSource value, IEqualityComparer`1 comparer)
at System.Linq.Enumerable.Contains[TSource](IEnumerable`1 source, TSource value)
at Microsoft.NET.Build.Tasks.ResolvePackageDependencies.<>c__DisplayClass48_1.<GetPackageAndFileDefinitions>b__3(IAssetsLogMessage log)
at System.Linq.Enumerable.WhereListIterator`1.MoveNext()
at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source)
at Microsoft.NET.Build.Tasks.ResolvePackageDependencies.<GetPackageAndFileDefinitions>g__GetPackageDiagnosticLevel|48_0(LockFileLibrary package)
at Microsoft.NET.Build.Tasks.ResolvePackageDependencies.GetPackageAndFileDefinitions()
at Microsoft.NET.Build.Tasks.ResolvePackageDependencies.ExecuteCore()
at Microsoft.NET.Build.Tasks.TaskBase.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext() TextureEditor C:\Program Files\dotnet\sdk\6.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets 195
This is the configuration I am trying to build with:
If interested, the project can be found here: https://github.com/olekristianhomelien/TheAssetEditor
Any ideas what is going wrong?

CRM solution import Error while importing workflow

I'm using CRM 2016, I have solution has many resources and entities, while import unmanaged solution to other CRM Org, I got error on process (name: Delete MEW) workflow ( this process doing changes on values from other entity), error as shown in log trace
Error while importing workflow {9b58220a-6706-4765-b2c0-86e7381064a8}
name Delete WEM
Error Number: 0x80040216
Error Message: Error while importing workflow
{9b58220a-6706-4765-b2c0-86e7381064a8} name Delete WEM
Error Details: Error while importing workflow
{9b58220a-6706-4765-b2c0-86e7381064a8} name Delete WEM
Source File: Not available
Line Number: Not available
Request URL:
Stack Trace Info: [CrmException: Error while importing workflow
{9b58220a-6706-4765-b2c0-86e7381064a8} name Delete WEM] at
Microsoft.Crm.Application.Platform.ServiceCommands.PlatformCommand.XrmExecuteInternal()
I tried to add it to another new solution, it give me the same issue.

Windows App Certification Kit - An error occurred while generating the report

While creating app package for Windows Phone Store following error is displayed.
Tried Reboot, Re-installing SDK, Re-installing VS Tools, Run as administrator.
None of them seems to make a difference.
Following is the log from: logotest_trace file in %AppData%/.../AppCertKit folder
appcertui.exe Information: 0 : Timestamp INFO:InstalledPrograms Modifying report file %AppData%\Local\Microsoft\AppCertKit\tempReport.xml.
appcertui.exe Information: 0 : Timestamp EXCEPTION[Infrastructure]: Infrastructure part name: "InstalledPrograms.cs", Method name: "ExecuteCreateReportTask_Tailored" Line: 227,
Comment: N/A
Exception message: Cannot import a null node.
Exception trace: at System.Xml.XmlDocument.ImportNodeInternal(XmlNode node, Boolean deep)
at Microsoft.Windows.SoftwareLogo.Tasks.InstalledPrograms.ExecuteCreateReportTask_Tailored(TaskData taskData)
appcertui.exe Information: 0 : Timestamp INFO:DependencyInformation Inserting information from %AppData%\Local\Microsoft\AppCertKit\aitoutputToUpload_776ba89a-41b0-4ead-8978-47dd9eff5b6c.xml.

Selenium C# MSTest - Failed to configure settings for runsettings plugin 'VSTest Run Configuration'

While executing selenium automation test in Visual Studio 12 Unit Test Project is giving following error:
------ Discover test started ------
Failed to configure settings for runsettings plugin 'VSTest Run Configuration' as it threw following exception:
'An error occurred while parsing EntityName. Line 1, position 14.'
Please contact the plugin author.
Failed to configure settings for runsettings plugin 'VSTest Run Configuration' as it threw following exception:
'An error occurred while parsing EntityName. Line 1, position 14.'
Please contact the plugin author.
--------------------------
Test Method:
[TestMethod]
public void Test_Login()
{
IWebDriver driver = new FirefoxDriver();
driver.Navigate().GoToUrl("https://google.co.in");
}
Environment: OS: Win7 64bit / FireFox 32.0 / Seleniom client for c#(2.42.0)
Details Error:
Test Name: Test_Login
Test FullName: SeleniumCSharp.Login.Test_Login
Test Source: d:\Project\R&D\Selenium\SeleniumCSharp\SeleniumCSharp\Login.cs : line 31
Test Outcome: Failed
Test Duration: 0:00:48.1050863
Result Message:
Test method SeleniumCSharp.Login.Test_Login threw exception:
OpenQA.Selenium.WebDriverException: Failed to start up socket within 45000 ms. Attempted to connect to the following addresses: 127.0.0.1:7055
Result StackTrace:
at OpenQA.Selenium.Firefox.FirefoxDriverServer.ConnectToBrowser(TimeSpan timeToWait) in c:\Projects\webdriver\dotnet\src\webdriver\Firefox\FirefoxDriverServer.cs:line 275
at OpenQA.Selenium.Firefox.FirefoxDriverServer.Start() in c:\Projects\webdriver\dotnet\src\webdriver\Firefox\FirefoxDriverServer.cs:line 97
at OpenQA.Selenium.Firefox.FirefoxDriverCommandExecutor.Execute(Command commandToExecute) in c:\Projects\webdriver\dotnet\src\webdriver\Firefox\FirefoxDriverCommandExecutor.cs:line 58
at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters) in c:\Projects\webdriver\dotnet\src\webdriver\Remote\RemoteWebDriver.cs:line 852
at OpenQA.Selenium.Remote.RemoteWebDriver.StartSession(ICapabilities desiredCapabilities) in c:\Projects\webdriver\dotnet\src\webdriver\Remote\RemoteWebDriver.cs:line 830
at OpenQA.Selenium.Remote.RemoteWebDriver..ctor(ICommandExecutor commandExecutor, ICapabilities desiredCapabilities) in c:\Projects\webdriver\dotnet\src\webdriver\Remote\RemoteWebDriver.cs:line 89
at OpenQA.Selenium.Firefox.FirefoxDriver..ctor(FirefoxBinary binary, FirefoxProfile profile) in c:\Projects\webdriver\dotnet\src\webdriver\Firefox\FirefoxDriver.cs:line 151
at OpenQA.Selenium.Firefox.FirefoxDriver..ctor() in c:\Projects\webdriver\dotnet\src\webdriver\Firefox\FirefoxDriver.cs:line 119
at SeleniumCSharp.Login.Test_Login() in d:\Project\R&D\Selenium\SeleniumCSharp\SeleniumCSharp\Login.cs:line 32
NOTE: When i executed the test method for the first time it got executed successfully. But for
all subsequent execution is raising above error.
Please help me to resolve this issue.
I found that one of the parent folders had an ampersand (&) in its title and this was causing the error... what an unhelpful error message though? I guess an XML parser must be doing something with the directory path and that is causing the parsing error

Unit Test/Code Coverage Warning & Error VS2010

I have a sample test project given to developers on my project team to learn how to use automated tests. When I run the set of unit tests that I have, they all pass but I receive the following Warning and Error:
Warning: conflict during test run deployment: deployment item '[...]\WebAppMvc4.dll' directly or indirectly referenced by the test container '[...]\webappmvc4.tests.dll' cannot be deployed to 'WebAppMvc4.dll' because otherwise the file '[...]\WebAppMvc4.dll' would overwrite deployment item '[...]\WebAppMvc4.dll' directly or indirectly referenced by '[...]\webappmvc4.tests.dll'
Error: Cannot initialize the ASP.NET project 'WebAppMvc4'.
Exception was thrown: The web site could not be configured correctly; getting ASP.NET process information failed. Requesting 'http://localhost:12903/VSEnterpriseHelper.axd' returned an error: The remote server returned an error: (500) Internal Server Error.
This is very similar to the problem found here: Test run errors with MSTest in VS2010
However, the resolution to this problem had to do with turning off the Sign The Assembly checkbox in the project properties. Signing is not turned on for this project, and I have not been able to determine the reason for the Warning/Error.
Here is the information from Event Viewer for the Warning:
Event code: 3008
Event message: A configuration error has occurred.
Event time: 6/27/2012 9:40:51 AM
Event time (UTC): 6/27/2012 2:40:51 PM
Event ID: a9b4d9d93e334acbbde6184527b4cd81
Event sequence: 1
Event occurrence: 1
Event detail code: 0
Process information:
Process ID: 4128
Process name: WebDev.WebServer40.EXE
Exception information:
Exception type: ConfigurationErrorsException
Exception message: Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Common, Version=5.0.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. Strong name signature could not be verified. The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045)
at System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective)
at System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory()
at System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai)
at System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig)
at System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies()
at System.Web.Compilation.BuildManager.CallPreStartInitMethods()
at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException)
Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Common' or one of its dependencies. Strong name signature could not be verified. The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045)
Request information:
Request URL:
http://localhost:12903/VSEnterpriseHelper.axd
And here is the info for the Error:
(QTAgent32.exe, PID 9392, Thread 7) CoveragePlugIn.InitAspNet threw in calling WorkerProcessIdentity or WorkerProcessImpersonatedIdentity for 'WebAppMvc4':
Microsoft.VisualStudio.Enterprise.Common.AspNetHelperException: The web site could not be configured correctly; getting ASP.NET process information failed.
Requesting 'http://localhost:12903/VSEnterpriseHelper.axd' returned an error: The remote server returned an error: (500) Internal Server Error. ---> System.Net.WebException: The remote server returned an error: (500) Internal Server Error.
at System.Net.HttpWebRequest.GetResponse()
at Microsoft.VisualStudio.Enterprise.Common.BaseHelper.GetWorkerProcessInfo()
--- End of inner exception stack trace ---
at Microsoft.VisualStudio.Enterprise.Common.BaseHelper.GetWorkerProcessInfo()
at Microsoft.VisualStudio.TestTools.CodeCoverage.CoveragePlugIn.InitAspNet(TestRun testRun)

Resources