Azure SDK 2.5.1 fails to Publish cloudService - azure

After successfully upgrading my cloud service to the new "Azure SDK for .NET 2.5.1" I got the following error when trying packaging/publishing.
Could not load file or assembly 'Microsoft.WindowsAzure.Packaging,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or
one of its dependencies. The system cannot find the file
specified. C:\Program Files
(x86)\MSBuild\Microsoft\VisualStudio\v12.0\Windows Azure
Tools\2.5\Microsoft.WindowsAzure.targets
The related line in the "Microsoft.WindowsAzure.targets" config file is 2930 which obviously is related to CSPack.
<CSPack
ServiceDefinitionFile="#(TargetServiceDefinition)"
Output="#(PublishServicePackage)"
PackRoles="#(Roles)"
SiteMapping="#(SiteMapping)"
RoleProperties="#(RoleProperties)"
ImportedModules="#(ImportedModules)"
CopyOnly="false"
>
</CSPack>
So I went on to create a fresh new Azure Cloud service in a fresh new project to see if something went wrong with the upgrade. Unfortunately the problem persists.
Is there a workaround or will I have to rollback to v2.4 (that will cause me significant amount of pain)
I am running on VS 2013 update 4.

Sorry for the trouble, everyone. We are investigating what's causing this. It looks like there is an odd behavior with our installers where in some environments those two binaries are not installed correctly.
We did discover if the 2.5.1 Azure Authoring Tools is removed and reinstalled, the missing binaries will be installed correctly. So if you run into this issue, please remove Authoring Tools v2.5.1 from Programs and Features, and reinstall via either the Web Platform Installer or the direct download links:
http://download.microsoft.com/download/1/E/7/1E76DD6F-66F1-47E0-A76A-3BBAAC617316/MicrosoftAzureAuthoringTools-x64.msi
http://download.microsoft.com/download/1/E/7/1E76DD6F-66F1-47E0-A76A-3BBAAC617316/MicrosoftAzureAuthoringTools-x86.msi
Apologies for the inconvenience. We will continue the investigation.

I searched locally for the required dll and found it in almost all previous versions of the Azure .Net SDK had it (from v2.0 onwards I believe).
So in order to fix this you need to copy the following dlls from the previous version v2.4 of the SDK to the similar location for v2.5.
SDK installation paths.
Src location: "C:\Program Files\Microsoft SDKs\Azure\.NET SDK\v2.4\bin"
Dst location: "C:\Program Files\Microsoft SDKs\Azure\.NET SDK\v2.5\bin"
Dlls to copy (missing):
Microsoft.WindowsAzure.Packaging.dll
Microsoft.WindowsAzure.ServiceModel.Common.dll
Since there may be a better answer to this I will not mark this as an answer yet.

Related

Could not load file or assembly 'System.ValueTuple Visual Studio 2017 15.8 node js project

I have installed vs2017 15.8. If I open a console C# app it opens fine. However trying to open node js project throws the following error. Has anyone managed to solve it?
Could not load file or assembly 'System.ValueTuple, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
I had the same problem. I could solve the problem by installing ".NET Framework 4.7.2"
Install-Source: https://support.microsoft.com/de-de/help/4054530/microsoft-net-framework-4-7-2-offline-installer-for-windows
After the Installation i have rebooted my System.
I ran into the same issue and as suggested by mc-hollin the installation of 4.7.2 worked for me as well.
Please see the installation steps below:
Open this link : https://www.microsoft.com/net/download/thank-you/net472
If the above link does not work please go to https://www.microsoft.com/net/download/dotnet-framework-runtime and proceed from there by selecting the correct framework.
This will initiate the downloading of NDP472-KB4054531-Web.exe in your system
Once the downloading has finished, please start the installation by double clicking the exe and let the installation begin. This could take a while based on the speed of your internet connection.
A restart after the installation is mandatory.
I just want to add to the other answers.
Remove System.valuetuple from references. Otherwise it doesn't work and I do not know why. Basically valuetuple is already in 4.7.2 and so if you use visual studio 2019 you're all set.

Unable to build Compiled Azure Function in VSTS (Error MSB4019)

I have created an Azure Function using the latest build of visual studio 2017 (15.3.1).
This build allows me to do the:
New Project > Azure Function App approach
This produces a .csproj (not a .funproj file) and it's doesn't come bundled with a website or anything. I've tried .Net 4.6 and 4.6.1 as the target framework and neither have worked.
I get the following error in VSTS:
C:\Users\Builder.nuget\packages\microsoft.net.sdk.functions\1.0.2\build\netstandard1.0\Microsoft.NET.Sdk.Functions.Publish.props
(13, 3)
C:\Users\Builder.nuget\packages\microsoft.net.sdk.functions\1.0.2\build\netstandard1.0\Microsoft.NET.Sdk.Functions.Publish.props(13,3):
Error MSB4019: The imported project "C:\Program Files (x86)\Microsoft
Visual
Studio\2017\Enterprise\MSBuild\Sdks\Microsoft.NET.Sdk.Publish\Sdk\Sdk.Props"
was not found. Confirm that the path in the declaration is
correct, and that the file exists on disk.
There is no node in my .csproj file so I am not sure where it is getting that from.
I'm using the latest NuGet option in VSTS, I'm using the Latest VS Version option as well.
The build steps are:
Get Sources
NuGet Restore
Build Solution (MSBuild.exe exited with code '1' every time)
Is there any way to build (and then release) compiled .Net functions in VSTS at the minute?
I was able to solve this by swapping the build agent from the "Default" group to the latest, "Hosted VS 2017" group, and that has compiled fine.
Looks like the machine is missing the latest dotnet cli. I'm not too familiar with VSTS build machines, but you'd need to get that on there somehow https://www.microsoft.com/net/download/core

Error Copying Typescript files when packaging Azure project - Visual Studio 2015 Update1

After updating to VS 2015 Update 1 (including Typescript 1.7) and the Azure SDK 2.8, I am unable to package my Azure application for deployment because of an error in the path the packager is trying to copy the js output file to:
Error Unable to copy file "D:\X\XX\XXX\App\services\editor\ruler-manager.js" to "D:\X\XX\XXX\obj\Debug\PE.Web\D:\X\XX\XXX\App\services\editor\ruler-manager.js". The given path's format is not supported. PE.Architecture C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Windows Azure Tools\2.8\Microsoft.WindowsAzure.targets 2787
Note that the directory has been included twice, causing an illegal colon in the middle of the output path.
It seems likely this is related to TFS Build error after installing Visual Studio 2015 Update 1 and https://social.msdn.microsoft.com/Forums/en-US/300a59bc-0f23-41a4-927a-05ae9978f3a4/unable-to-build-project-with-tyepscript-since-upgrading-to-vs-2015-update-1?forum=msbuild&prof=required and https://github.com/Microsoft/TypeScript/issues/5894
Update:
The following workaround has been suggested, but we were still unable to publish after implementing it:
We worked around it by manually adding ContinueOnError="WarnAndContinue" to the Copy task within the CopyWebRoleFiles target, within Microsoft.WindowsAzure.targets.
(Source: https://github.com/Microsoft/TypeScript/issues/5894#issuecomment-162261090)
Does anyone have any workarounds or fixes other than the ones suggested in the linked threads?
This was a bug in the Typescript 1.7 tooling. Fixes have been released:
For VS 2015 (TS 1.7.6)
For VS 2013 (TS 1.7.5)
Details here: https://github.com/Microsoft/TypeScript/issues/5894#issuecomment-163798025

Azure node.js iisnode_shema.xml The system cannot find the path specified

I'm using the latest Windows Azure SDK for Node.js (August 2012) from Web Platform Installer. When I try to run my node application I get this error in the log file:
G:\node\mathwizard\local_package.csx\roles\WebRole2\approot\bin>copy /y "C:\Program Files (x86)\Microsoft SDKs\Windows Azure\PowerShell\x64\iisnode_schema.xml" "C:\Program Files\IIS Express\config\schema\iisnode_schema.xml"
The system cannot find the path specified.
Cannot connect to the application in the browser.
Any help please?
We made some changes between the July and August releases that make it necessary to migrate your project over to the new August format if you want to use the August tools. As you discovered, if you recreate the project, copy over all your node files unchanged, it should just work. Sorry for the inconvenience!
We have filed this issue https://github.com/WindowsAzure/azure-sdk-tools/issues/331 to investigate further.

Windows Azure SDK v1.6 does not contain csrun.exe, where can I download?

I've downloaded and installed the official Windows Azure SDK v1.6 but for some reason csrun.exe (needed for running a package locally) is not in the bin directory with all the other exe files like cspack.exe etc. I have tried reinstalling and still did not get the executible. Is there anywhere to manually download this file, google wasn't any help...
It is installed by the new v1.6 SDK into the directory
C:\Program Files\Windows Azure Emulator\emulator
Just an update to this, looks like this is installed to the following location now.
C:\Program Files\Microsoft SDKs\Azure\Emulator
This question was prompted by my attempts to follow the post here http://blogs.msdn.com/b/brmeena/archive/2010/08/06/how-to-deploy-azure-roles-in-net-4-0-on-development-fabric.aspx about how to deploy to the dev fabric.
Andrew Patterson is correct in his answer above and I've marked it so, but I also found that I could run the tool from the Windows Azure Command Prompt even when I couldn't find the .exe (I still can't get Windows 7 search to behave)
Sharing here for my own recollection as well as to assist anyone else who might run into this issue.

Resources