Can someone help me figure out where CloudConfigurationManager exists in Azure SDK v2.4?
CloudConfigurationManager, in the v2.3 SDK, is located in:
C:\Program Files\Microsoft SDKs\Windows Azure.NET SDK\v2.3\ref\Microsoft.WindowsAzure.Configuration.dll
The 2.4 SDK is at C:\Program Files\Microsoft SDKs\Azure.NET SDK\v2.4
And there's no such Microsoft.WindowsAzure.Configuration.dll in that directory..
MSDN still shows CloudConfigurationManager in Microsoft.WindowsAzure.Configuration.dl: http://msdn.microsoft.com/en-us/library/azure/microsoft.windowsazure.cloudconfigurationmanager.aspx
And so the only way I can get my project to compile is if I have both the 2.3 and 2.4 SDK installed at the moment.
I found it in Microsoft.Azure as opposed to Microsoft.WindowsAzure
It is in the folder C:\Program Files\Microsoft SDKs\Azure.NET SDK\v2.4\packages as a local NuGet package (see below). Also, there is a file in that directory titled LocalPackagesInstallationInstructions.docx that explains how to add it as a path for your NuGet Packages. If you have a new dev environment installation (as I did recently) then you may find this helpful.
Latest Answer .
Install Package Microsoft.WindowsAzure.ConfigurationManager.3.2.1 or newer
which contains Microsoft.Azure namespaces which is having this class. CloudConfigurationManager
1.Download Cloud Configuration NuGet package
https://www.nuget.org/packages/Microsoft.WindowsAzure.ConfigurationManager/
2.Install the package from local by solution NuGet package Manager
3.In code you will find class in Microsoft.Azure.CloudConfigurationManager
Related
Is there a tool, or way to update your VisualStudio reference versions when a new version of the Azure SDK is installed?
Things like Microsoft.WindowsAzure.Diagnostics.dll and Microsoft.WindowsAzure.ServiceRuntime.dll are referenced by the folder
C:\Program Files\Microsoft SDKs\Azure\.NET SDK\v2.8\ref\Microsoft.WindowsAzure.ServiceRuntime.dll
rather than a nuget package (which would be auto updated when the nuget reference is updated). I noticed after cloning a repo to a machine with only v2.9 installed that my solution wouldn't build as there was a hard dependancy to an SDK version.
Project references to the various parts of the Azure SDK should live in the installation of the Azure SDK, but for some odd reason my code (an Azure Mobile Service) can no longer see Microsoft.WindowsAzure.Diagnostics:
I should be able to pick the Microsoft.WindowsAzure.Diagnostics.dll up from my Azure SDK 2.7 installation, but here's what I see in the SDK's 'ref' directory:
I.e. I just have
Microsoft.WindowsAzure.ServiceRuntime.dll
WindowsAzureEventSource.dll
WindowsAzureTelemetryEvents.dll
but I do not have Microsoft.WindowsAzure.Diagnostics.dll. Interestingly there is an NuGet package called Unofficial.Microsoft.WindowsAzure.Diagnostics, with over 30,000 downloads, which suggests that I am not the only one having this problem.
Where should I reference Microsoft.WindowsAzure.Diagnostics from; is it a DLL somewhere in an SDK or in a NuGet package; where is it?
You can find it here: C:\Program Files\Microsoft SDKs\Azure\.NET SDK\v2.7\bin\plugins\Diagnostics. With SDK version 2.5, diagnostics is now a plugin.
It's not in C:\Program Files\Microsoft SDKs\Azure\.NET SDK\v2.7\ref, but is in
C:\Program Files\Microsoft SDKs\Azure\.NET SDK\v2.7\bin\plugins\Diagnostics\Microsoft.WindowsAzure.Diagnostics.dll
It was a simple matter of removing the stale reference and re-adding it through the Reference Manager:
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.
I have Visual Studio 2013 with update 3 installed.
On the first time i opened my project, it prompted me to download and install
Azure SDK 2.2 and so i did.
When i tried to build, it fails and gives me this error message:
Error 109 WAT080 : Failed to locate the Windows Azure SDK. Please make sure the Windows Azure SDK v2.1 is installed.
So I installed SDK 2.1 but the build still fails with the same error.
These are my installed azure SDKs: 2.1, 2.2, 2.3, 2.4.
I also confirmed that the folders of each version are NOT missing here:
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\Windows Azure Tools
We started the cloud project which is an MVC site on the 3rd quarter of 2013 when the Windows Azure 2.2 released and I had no problem.
Is it possible that these Azure SDKs are conflicting?
It's fixed now. Unfortunately, you cannot find the Azure SDK 2.2 for VS 2013 and older versions in web platform installer anymore. So you have to manually install all the components (according to version).
I noticed that this folder is missing.
C:\Program Files\Microsoft SDKs\Windows Azure.NET SDK\v2.2
Which means that WindowsAzureLibsForNet-x64.msi is not yet installed.
You can download it here: http://www.microsoft.com/en-us/download/details.aspx?id=40893.
I've seen solved threads about this but the solution didn't solve for everyone. I hope this would help.
I had to restart Visual Studio after Azure SDK install. ServiceHostingSDKBinDir was set fine in msbuild, but not in the VS.
I added C:\Program Files\Microsoft SDKs\Windows Azure.NET SDK\v2.3 (or whatever sdk you need eg. 2.2, 2.4) to the system path and it fixed the issue of VS2013 not being able to find the SDK.
After I'd changed the system path, I had to restart VS2013.
Could someone please help me with how to find/know the Azure SDK installed on a machine?
The reason being, I am trying to use Azure Cache and it's complaining about SDK.
I found my installs at:
C:\Program Files\Microsoft SDKs\Azure.NET SDK
Should be in your C:\Program Files\Windows Azure SDK\<version> folder where version = Azure SDK version.
Looks like the location has potentially changed again:
C:\Program Files\Microsoft SDKs\Azure\.NET SDK\v2.9
Users of Visual Studio can also verify installed components of SDK in Visual Studio Installer, as an alternative to manually viewing it in the file system.
Visual Studio Installer -> Installed -> Modify should bring you a screen with installation details. There you should be able to see installed SDKs and the list of included and not included components of your SDK.
I found it in
C:\Users\YOURUSER\AppData\Roaming\Python\Python27\site-packages\azure