I am getting this error on visual studio online servers. I would like to see why it failed ? How do I see what is installed on visual studio build agent ?
Error
2017-06-20T15:11:00.0341044Z ##[error] System.Exception : Non
matching response code: InternalServerError - {"message":"An error has
occurred.","exceptionMessage":"Could not load type
'Microsoft.ServiceFabric.Data.Collections.IReliableConcurrentQueue`1'
from assembly 'Microsoft.ServiceFabric.Data.Interfaces,
Version=5.0.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35'.","exceptionType":"System.TypeLoadException","stackTrace":"
at Infrastructure.ExceptionHandling.ExceptionHelper.ThrowIfUnhandled()
in
d:\a\1\s\Infrastructure\Infrastructure.ExceptionHandling\ExceptionHelper.cs:line
45\r\n at
xxxx.WebApi.Controllers.yyyyTypesController.d__8.MoveNext()
in
d:\a\1\s\Orchestration\xxxxGenius\xxxxx.WebApi\Controllers\yyyyTypesController.cs:line
142\r\n--- End of stack trace from previous location where exception
was thrown ---\r\n at
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task
task)\r\n at
Where should I click ?
The build is telling you why it failed: It can't find the assembly Microsoft.ServiceFabric.Data.Interfaces.
The software loaded on the hosted agent is well documented. If the hosted agent doesn't have something you need, and you can't install it as a NuGet/NPM package, then you'll have to set up your own agent that has the required software on it.
Related
I get the following error when trying to install Docker Desktop (4.12.0), my machine rebooted and I guess docker tried to update itself and failed, not I cant install at all.
Any ideas? Below is the install log:
Started on: 2022/10/04 11:10:35.716
File: C:\Users\Administrator\AppData\Local\Docker\install-log.txt
CommandLine: "C:\Users\Administrator\Downloads\Docker Desktop Installer.exe"
[11:10:35.903][ManifestAndExistingInstallationLoader] No install path specified, looking for default installation registry key
[11:10:35.903][Program] No installation found
[11:10:36.138][InstallWorkflow] Cancel pending background download
[11:10:36.169][InstallWorkflow] Using package: res:DockerDesktop
[11:10:36.169][InstallWorkflow] Downloading
[11:10:40.517][InstallWorkflow] Extracting manifest
[11:10:41.588][InstallWorkflow] Manifest found: version=69879, displayVersion=4.1.1, channelUrl=https://desktop.docker.com/win/main/amd64/appcast.xml
[11:10:41.589][InstallWorkflow] Checking prerequisites
[11:10:42.022][InstallWorkflow] Unpacking artifacts
[11:12:27.478][InstallWorkflow] Deploying component CommunityInstaller.CreateGroupAction
[11:12:32.128][InstallWorkflow] Deploying component CommunityInstaller.AddToGroupAction
[11:12:36.717][InstallWorkflow] Deploying component CommunityInstaller.EnableFeaturesAction
[11:12:37.708][InstallWorkflow] Deploying component CommunityInstaller.ServiceAction
[11:12:37.713][InstallWorkflow-ServiceAction] Removing service
[11:12:37.717][InstallWorkflow-ServiceAction] Creating service
[11:12:39.270][InstallWorkflow] Deploying component CommunityInstaller.ShortcutAction
[11:12:39.324][InstallWorkflow-ShortcutAction] Creating shortcut: C:\ProgramData\Microsoft\Windows\Start Menu\Docker Desktop.lnk/Docker Desktop
[11:12:39.339][InstallWorkflow] Deploying component CommunityInstaller.ShortcutAction
[11:12:39.340][InstallWorkflow-ShortcutAction] Creating shortcut: C:\Users\Administrator\Desktop\Docker Desktop.lnk/Docker Desktop
[11:12:39.342][InstallWorkflow] Deploying component CommunityInstaller.AutoStartAction
[11:12:39.362][InstallWorkflow] Installation failed
Exception type: System.Exception, Exception message: Component CommunityInstaller.AutoStartAction failed: The parameter is incorrect.
, StackTrace:
at CommunityInstaller.InstallWorkflow.<DoHandleD4WPackageAsync>d__30.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at CommunityInstaller.InstallWorkflow.<DoProcessAsync>d__24.MoveNext()
[11:12:39.365][InstallWorkflow] Rollbacking component CommunityInstaller.ShortcutAction
[11:12:39.365][InstallWorkflow] Rollbacking component CommunityInstaller.ShortcutAction
[11:12:39.366][InstallWorkflow] Rollbacking component CommunityInstaller.ServiceAction
[11:12:40.377][InstallWorkflow] Rollbacking component CommunityInstaller.EnableFeaturesAction
[11:12:40.378][InstallWorkflow] Rollbacking component CommunityInstaller.AddToGroupAction
[11:12:40.379][InstallWorkflow] Rollbacking component CommunityInstaller.CreateGroupAction
[11:12:40.380][InstallWorkflow] Rollbacking component CommunityInstaller.UnpackArtifactsStep
[11:12:40.397][FileSystem] Deleting C:\Program Files\Docker\Docker
[11:12:40.573][FileSystem] Deleted C:\Program Files\Docker\Docker successfully
[11:12:40.573][InstallWorkflow] Rollbacking component CommunityInstaller.ExtractManifestStep
[11:12:40.574][InstallWorkflow] Rollbacking component CommunityInstaller.DownloadStep
After a couple of machine restarts the error went away
I'm trying to compile my solution developed with VS2019, but at the end of the process I get the following error:
ASPNETCOMPILER (0,0): ASPRUNTIME error: Object reference not set as an instance of an object.
I tried to:
Remove all *.refresh files at bin folder.
Execute VS2019 as Administrator.
Installed and executed "Clear MEF Components Caché" plugin.
Changed "combination options".
Deleted old files at temp folder.
The log file displays the following code:
10/09/2020 15:08:22
System.AggregateException: One or more errors occurred. ---> System.Exception: Compilation error. Check the output window for more details.
--- End of inner exception stack trace ---
is System.Threading.Tasks.Task.ThrowIfExceptional (Boolean includeTaskCanceledExceptions)
is System.Threading.Tasks.Task.Wait (Int32 millisecondsTimeout, CancellationToken cancellationToken)
is Microsoft.WebTools.Publish.PublishService.VsWebProjectPublish. <> c__DisplayClass43_0. <PublishAsync> b__3 ()
is System.Threading.Tasks.Task`1.InnerInvoke ()
is System.Threading.Tasks.Task.Execute ()
--- End of stack trace from previous location where exception occurred ---
is System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (task)
is System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (Task Task)
is Microsoft.Publish.Framework.ViewModel.ProfileSelectorViewModel. <RunPublishTaskAsync> d__213.MoveNext ()
---> (Internal exception no. 0) System.Exception: Compilation error. Check the output window for more details. <---
System.Exception: Compilation error. Check the output window for more details.
===================
And the output window:
But nothing of these options worked for me. CAn someone help me?
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.
My Build Server has been running just fine for a couple months and then this week we started getting this problem (see below).
It's almost certainly a permission problem, but no one in IT will admit to having changed a permission somewhere.
Also, it's trying to publish a log file to a location that doesn't exist!
to '#/416/logs/msbuild/agent-2'
If I knew where this location was, I would happily fix it or turn this specific publish off. All the other logs are present and accessible (obviously I'm able to view the log of these errors).
using Visual Studio 2013 & TFS2013.
This is the same issue, but changing the drop folders didn't fix it:
TFS Error publishing log files to #/198/logs/msbuild/agent-2
Other Errors and Warnings
3 error(s), 0 warning(s)
Exception Message: TF270016: An error occurred publishing log files from
'C:\Builds\2\AppName\AppName\src\AppName\AppName.log'
to '#/416/logs/msbuild/agent-2'. Details: An error occurred while
sending the request. (type PublishLogFileException) Exception Stack
Trace: at
System.Activities.Statements.Throw.Execute(CodeActivityContext
context) at
System.Activities.CodeActivity.InternalExecute(ActivityInstance
instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
at
System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor
executor, BookmarkManager bookmarkManager, Location resultLocation)
Inner Exception Details:
Exception Message: An error occurred while sending the request. (type
HttpRequestException) Exception Stack Trace: at
Microsoft.TeamFoundation.Build.Workflow.Activities.FileContainerDropProvider.CopyDirectory(String
sourceDirectory, String targetDirectory) at
Microsoft.TeamFoundation.Build.Workflow.Activities.FileContainerDropProvider.CopyDirectory(String
sourceDirectory, String targetDirectory, String[] renameIfExists)
at
Microsoft.TeamFoundation.Build.Workflow.Activities.PublishLogFile.Execute(CodeActivityContext
context)
Inner Exception Details:
Exception Message: Unable to connect to the remote server (type
WebException)Exception Stack Trace: at
System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult
ar)
Inner Exception Details:
Exception Message: No connection could be made because the target
machine actively refused it [::1]:8080 (type SocketException)
Exception Stack Trace: at
System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult) at
System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure,
Socket s4, Socket s6, Socket& socket, IPAddress& address,
ConnectSocketState state, IAsyncResult asyncResult, Exception&
exception)
An error occurred while copying diagnostic activity logs
to the drop location. Details: An error occurred while sending the
request.
An error occurred while copying diagnostic activity logs to
the drop location. Details: An error occurred while sending the
request.
Update 12/29/2015
I've been able to confirm with IT that our main TFS instance was updated to 2013 Update 5.
Our build server is running TFS 2013 Update 4. My next priority will be getting the build server updated.
You can try to create a new build agent to see whether the issue persists.
The issue had nothing to do with TFS.
On the build server machine, we had a copy of Visual Studio installed (necessary for MSBuild and MSTest). The license we used had expired, and as a result Visual Studio installed in trial mode.
I don't know why this mattered, but reinstalling Visual Studio using a valid license fixed the issue.
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)