Azure Website/Visual Studio Online Continuous Deployment fails for Website - azure

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!

Related

Error printing crystal report in my c# app

I made a c# program with VS 2019 with crystal report for visual studio. All works well in my machine.
I'm installing in my client with Clickonce. But I having a problem in my client with this error:
System.TypeInitializationException: The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception. --->
System.TypeInitializationException: The type initializer for 'CrystalDecisions.Shared.SharedUtils' threw an exception. ---> System.IO.FileLoadException:
Could not load file or assembly 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies.
The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
at CrystalDecisions.Shared.SharedUtils..cctor()
--- End of inner exception stack trace ---
at CrystalDecisions.Shared.SharedUtils.get_CurrentControl()
at CrystalDecisions.Shared.SharedUtils.GetEffectiveCulture()
at CrystalDecisions.CrystalReports.Engine.CREngineRes.GetString(String name)
at CrystalDecisions.CrystalReports.Engine.ReportDocument.CheckForCrystalReportsRuntime()
at CrystalDecisions.CrystalReports.Engine.ReportDocument..cctor()
--- End of inner exception stack trace ---
at CrystalDecisions.CrystalReports.Engine.ReportDocument..ctor()
at PatientTrackingSystem.MainWindow.<PrintReportAsync>d__143.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at PatientTrackingSystem.MainWindow.<cmdPrintRouteSlip_Click>d__144.MoveNext()
For the file log4net, I changed the publish Status in the Application Files to "Include" but I still have the same error.
Then I installed the log4net NuGet Package in my application, remade the clickonce setup, and I still have the same error.
When I look in the my client machine, I see that file where clickonce install the application.
Any idea to fix that issue?
You are facing issue while loading the file which used to append your logs, please mention the steps you have followed and make sure your config file and assembly file is correct, most of the issue is due to your config file .
You have to go to AssemblyInfo.cs and include
[assembly: log4net.Config.XmlConfigurator(Watch = true)]
You have to make sure in your config file file path under this tag is correct :

Error during deployment to azure from visual studio online

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).

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)

HPC Boot Strapper - Error - Disabled SOA Runtime - ETW manifest install

I am trying to disable SOA from the Azure HPC sample project. I have removed the line config.EnableSOA as instructed at http://msdn.microsoft.com/en-us/library/hh674347(v=vs.85).aspx
This causes the hpcbootstrapepr to fail, and the hpc job scheduler is not launched properly.
If I re-execute E:\plugins\HpcHeadNode\HPCPack\bin\hpcbootstrapper.exe the job scheduler installation will complete and I can execute MPI jobs.
I want to use MSMPI only and make the deployment as small as possible. (Currently around 56Mb)
Using SDK 1.8 and the latest AppConfigure project from http://code.msdn.microsoft.com/windowsazure/Windows-Azure-HPC-7d75eb26
9/24/2013 10:22:05 PM: Executing command: D:\Windows\System32\wevtutil.exe im E:\plugins\HpcHeadNode\HPCPack\bin\RuntimeEvents.man /rf:E:\plugins\HpcHeadNode\HPCPack\bin\BrokerBase.dll /mf:E:\plugins\HpcHeadNode\HPCPack\bin\BrokerBase.dll /pf:E:\plugins\HpcHeadNode\HPCPack\bin\BrokerBase.dll
9/24/2013 10:22:05 PM: Unhandled exception: Soa runtime ETW manifest installation failed with exit code 2.
Output:
Error:
The system cannot find the file specified.
9/24/2013 10:22:05 PM: at HPCBootStrapper.Utils.ExecuteCommandInternal(String cmdPath, String cmdArgs, String actionDesc, Int32 errorToIgnore, Int32 retryErrorCode, Int32 retryTimes, Int32 retryIntervalMs, Int32 procTimeoutMs)
at HPCBootStrapper.HpcSoa.InstallETWManifests()
at HPCBootStrapper.HpcSoa.ConfigureSoa(List`1 modules)
at HPCBootStrapper.HpcBootStrapper.BootStrap(List`1 modules)
at HPCBootStrapper.HpcBootStrapper.Main(String[] args)
This re-execution resolves:
https://stackoverflow.com/questions/16690643/windows-azure-hpc-scheduler-sample-no-such-host-is-known/18987644#18987644
HPC Scheduler service (http://code.msdn.microsoft.com/windowsazure/Windows-Azure-HPC-7d75eb26) is deprecated.
The officially supported configuration is HPC Pack 2012 installed on a VM hosted on-premise or within Azure. This error is not present in this configuration.
See:
http://www.microsoft.com/en-us/download/details.aspx?id=36054

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.

Resources