Error during deployment to azure from visual studio online - azure

I'm getting this weird error when trying to deploy to azure from visual studio online:
Exception Message: Could not find a part of the path 'd:\a\src'. (type DirectoryNotFoundException)
Exception Stack Trace: at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileSystemEnumerableIterator`1.CommonInit()
at System.IO.FileSystemEnumerableIterator`1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler`1 resultHandler, Boolean checkHost)
at System.IO.Directory.GetFiles(String path, String searchPattern, SearchOption searchOption)
at Microsoft.TeamFoundation.Deployment.Workflow.Activities.FindPackageAndParametersFile.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)
I'm pretty sure that I am not using a folder named 'd:\a\src' in my solution.

I was able to fix it by changing the Build Agent Folder to something that involves $(SourceDir).

Related

VSTS deploy Azure function error: 4294967295

I'm using VSTS to deploy an Azure Function. I started getting some errors during the deployment from yesterday morning.
The error code is 4294967295, usually related to a locked folder but the error message says The user name or password is incorrect, so I'm a little confused.
2018-01-28T08:31:58.6556754Z ##[error]Failed to deploy web package to App Service.
2018-01-28T08:31:58.6568081Z ##[error]Error: (1/28/2018 8:31:58 AM) An error occurred when the request was processed on the remote computer.
Error: The user name or password is incorrect.
at Microsoft.Web.Deployment.NativeMethods.RaiseIOExceptionFromErrorCode(Win32ErrorCode errorCode, String maybeFullPath)
at Microsoft.Web.Deployment.DirectoryEx.CreateDirectory(String path)
at Microsoft.Web.Deployment.DirectoryEx.CreateDirectoriesFromRoot(String path)
at Microsoft.Web.Deployment.AppOfflineRuleHandler.AddAppOfflineFilesToEachApp(DeploymentBaseContext baseContext, Boolean whatIf)
at Microsoft.Web.Deployment.AppOfflineRuleHandler.Add(DeploymentSyncContext syncContext, DeploymentObject destinationObject, DeploymentObject& sourceObject, Boolean& proceed)
at Microsoft.Web.Deployment.DeploymentSyncContext.HandleAdd(DeploymentObject destObject, DeploymentObject sourceObject)
at Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildren(DeploymentObject dest, DeploymentObject source)
at Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildrenNoOrder(DeploymentObject dest, DeploymentObject source)
at Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildren(DeploymentObject dest, DeploymentObject source)
at Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildrenOrder(DeploymentObject dest, DeploymentObject source)
at Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildren(DeploymentObject dest, DeploymentObject source)
at Microsoft.Web.Deployment.DeploymentSyncContext.ProcessSync(DeploymentObject destinationObject, DeploymentObject sourceObject)
at Microsoft.Web.Deployment.DeploymentObject.SyncToInternal(DeploymentObject destObject, DeploymentSyncOptions syncOptions, PayloadTable payloadTable, ContentRootTable contentRootTable, Nullable1 syncPassId, String syncSessionId)
at Microsoft.Web.Deployment.DeploymentAgent.HandleSync(DeploymentAgentAsyncData asyncData, Nullable1 passId, String user, String siteName)
Error count: 1.
2018-01-28T08:31:58.6575553Z ##[error]Error: C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe failed with return code: 4294967295
Based on your log, the Package or folder option for Azure App Service Deploy task is too broad. It matches more than one .zip files.
In the log, it matches two zip files:
d:\a\r1\a\Stamp BigBro\drop\HeartbeatMonitor.zip
d:\a\r1\a\temp_web_package_08951874997805498.zip
And the d:\a\r1\a\temp_web_package_08951874997805498.zip file(apparently it’s not as expected) is treated as package in msdeploy cli.
So you should change the Package or folder option to make sure it can only much the HeartbeatMonitor.zip fie. Such as any of below formats can work:
$(System.DefaultWorkingDirectory)\**\HeartbeatMonitor.zip
$(System.DefaultWorkingDirectory)\Stamp BigBro\drop\HeartbeatMonitor.zip

Could not load file or assembly 'Microsoft.VisualStudio.QualityTools.Common, Version=12.0.0.0' with LabDefaultTemplate.11.xaml

Currently we are upgrading our tfs server from 2012RTM to 2013update3.
We encounter following exception when to do BDT on Lab center.
Build controller: tfs2013 update3
Test controller: tfs2012 update 4
Test agent: tfs2012 update 4
Lab template: LabDefaultTemplate.11.xaml
Exception details:
Exception Message: Could not load file or assembly
'Microsoft.VisualStudio.QualityTools.Common, Version=12.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its
dependencies. The system cannot find the file specified. (type
FileNotFoundException) Exception Stack Trace: at
Microsoft.TeamFoundation.Lab.Workflow.Activities.ExecuteRemoteTestRun2.TestRunCreation.CreateTestRun(CodeActivityContext
context, ITestManagementService testManager,
ITestManagementTeamProject project) at
Microsoft.TeamFoundation.Lab.Workflow.Activities.ExecuteRemoteTestRun2.TestRunCreation.Execute(CodeActivityContext
context) at
System.Activities.CodeActivity`1.InternalExecute(ActivityInstance
instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
at
System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor
executor, BookmarkManager bookmarkManager, Location resultLocation)

Azure Website/Visual Studio Online Continuous Deployment fails for Website

I hooked up a Web Site project in Visual Studio 2013 to the continuous deployments within Azure Web Sites. Checking-in triggers a build, but I receive the following error:
Exception Message: The deployment package file (*.zip) was not found.
Ensure that PackageAsSingleFile msbuild property is not set to False.
(type FileNotFoundException) Exception Stack Trace: at
Microsoft.TeamFoundation.Deployment.Workflow.Activities.FindPackageAndParametersFile.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)
I added the msbuild argument for PackageAsSingleFile=false to the build configuration, but it doesn't seem to make a difference.
Any ideas?
Thanks in advance!

Error publishing log file TFS2012

I have en problem with TFS2012 after i have install an Visual Studio 2012 on a Microsoft Server 2012. Im gettting this error:
Exception Message: TF270016: An error occurred publishing log files from 'D:\Builds\3_2\MES_Projects\PJDGatewayTester - Main\Sources\Src\LPS_CMData\PJDGatewayTest.log' to '\\Server\Drop\Build\PJDGatewayTester - Main\PJDGatewayTester - Main_.6\logs'. Details: Access to the path '\\server\Drop\Build\PJDGatewayTester - Main\PJDGatewayTester - Main_.6\logs' is denied. (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: Access to the path '\\server\Drop\Build\PJDGatewayTester - Main\PJDGatewayTester - Main_.6\logs' is denied. (type UnauthorizedAccessException)
Exception Stack Trace: at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj, Boolean checkHost)
at System.IO.Directory.InternalCreateDirectoryHelper(String path, Boolean checkHost)
at Microsoft.TeamFoundation.Common.FileSpec.CopyFile(String oldPath, String newPath, Boolean overwriteExisting)
at Microsoft.TeamFoundation.Build.Workflow.Activities.WindowsDropProvider.CopyDirectory(String sourceDirectory, String targetDirectory)
at Microsoft.TeamFoundation.Build.Workflow.Activities.WindowsDropProvider.CopyDirectory(String sourceDirectory, String targetDirectory, String[] renameIfExists)
at Microsoft.TeamFoundation.Build.Workflow.Activities.PublishLogFile.Execute(CodeActivityContext context)
The workflow instance has been canceled. (Reason: The activity 'Try Compile, Test, and Associate Changesets and Work Items' with ID 12211 threw or propagated an exception while being canceled.)
An error occurred while copying diagnostic activity logs to the drop location. Details: Access to the path '\\server\Drop\Build\PJDGatewayTester - Main\PJDGatewayTester - Main_.6\Logs' is denied.
An error occurred while copying diagnostic activity logs to the drop location. Details: Access to the path '\\server\Drop\Build\PJDGatewayTester - Main\PJDGatewayTester - Main_.6\Logs' is denied.
Looks like you just need to give permissions for your build service account to the drop location.

Orchard Cannot access to media file - access is denied

I'm trying to insert picture in Orchard amdin page, but I get an error
An unhandled exception has occurred and the request was terminated. Please refresh the page. If the error persists, go back
The folder could not be created at path: . System.UnauthorizedAccessException: Access to the path 'D:\Projects\MySite.Web\Media\Default' is denied. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj) at Contrib.MediaFolder.Services.RemoteStorageProvider.ListFolders(String path)
System.ArgumentException: The folder could not be created at path: . System.UnauthorizedAccessException: Access to the path 'D:\Projects\MySite.Site.Web\Media\Default' is denied. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj) at Contrib.MediaFolder.Services.RemoteStorageProvider.ListFolders(String path) at Contrib.MediaFolder.Services.RemoteStorageProvider.ListFolders(String path) at Orchard.Media.Services.MediaService.GetMediaFolders(String relativePath) at Orchard.MediaPicker.Controllers.AdminController.Index(String name, String mediaPath) at lambda_method(Closure , ControllerBase , Object[] ) at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass15.b__12() at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation)
I have set all permissions for all users (IUSR, SYSTEm, Administartor, Users) to Media folder, but still getting error. Please, help me to resolve this problem. Thanks in advance!
I had the same problem, copying the contents of the media folder to a new folder, deleting the media folder and renaming the new folder to Media and set permissions for IIS_IUSRS, seemingly solved the problem.

Resources