Window Azure solution- Not running under local solution - azure

need urgent help
i am not able to run the solution in the local environment. I have created the hello world sample and trying to run the application but i am getting error like some prerequisites are missing. Below in the configuration i have.
Installed in VM--
Window server 2008 OS-32 Bit
VS 2010
Installed the Azure SDK
But when i am running the solution i am getting below error ---
Windows Azure Tools: Warning: The Windows Azure development fabric and development storage are running on a 32-bit workstation. In the cloud, Windows Azure Hosted Services run in a 64-bit environment. The use of native code execution or .Net Full Trust features such as P/Invoke may require migration to 64-bit. See http://go.microsoft.com/fwlink/?LinkId=145047 for details.
Windows Azure Tools: Error: Running .NET 4.0 web roles on the Windows Azure Development Fabric requires installing the following QFE: http://support.microsoft.com/kb/958854, or upgrading to SP2 of Windows Vista or Windows Server 2008.
Windows Azure Tools: The system is missing a prerequisite to execute the service. Please see the release notes.
Can any one suggest what i am doing wrong ??

As said, you are using 32-bit environment. Retry on 64-bit Windows Server.

Also make sure the client profile in not set on the .NET Assembly versioning... Choose .NET 4

Did you upgrade to SP2 of Windows Server 2008 as suggested by the warning message ? And the mentioned hotfix for IIS7 & .NET 4.0: http://support.microsoft.com/kb/958854.

Related

Fix application deploy error on AzureDevops

I have created release in Azure Devops, which should be deplyoing my web application to IIS which is on a physical server (Windows Server 2008) but firstly I am getting a warning:
##[Warning 1]
The operating system the agent is running on is "Windows Server" (OS name: 2008, OS version: 7601), which will not be supported by the .NET 6 based v3 agent. Please upgrade the operating system of this host to ensure compatibility with the v3 agent. See https://aka.ms/azdo-pipeline-agent-version
Then I am getting a error:
I have created an Agent on my server, and until today I was not getting this error. How could I fix this?
Windows Server 2008 reached end of life years ago, so no modern tool is going to support it any more.
You might feel lucky that things were running, but that luck finally ran out. You have to upgrade your machine to a supported Windows version.

IIS 10 App Pool Keeps Stopping due to aspnetcore.dll failed to load

I have an asp.net core 2.0 hosted locally on IIS 10. For some reason DefaultAppPool keeps stopping as soon as I hit the hosted website.
And I am getting HTTP Error 503. The service is unavailable.
In event logs I see following error;
The Module DLL C:\WINDOWS\system32\inetsrv\aspnetcore.dll failed to
load. The data is the error.
When I check the path C:\WINDOWS\system32\inetsrv\ I do not see aspnetcore.dll exists. Should it be there? If yes, .net core installation exe shouldn't be copy it?
Here are some information below;
What I tried, and did not worked?
Troubleshooting IIS AppPool crashes
Uninstalled .net core and reinstalled.
Changed App Pool Identity to Network Service etc.
Any idea how I can fix this?
For hosting .Net Core applications in IIS, .Net CLR Version of application pool should be No Managed Code as shown in below screenshot. If you don't see "No Managed Code" option in in dropdown then you need to install .Net Core Hosting Bundle.
Ensure you have .NET Core Hosting Bundle installed as mentioned here:
https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/?view=aspnetcore-2.1&tabs=aspnetcore2x
I also had this problem in Windows server 2012 R2
I found this answer:
ASP.NET Core/.NET Core: Runtime & Hosting Bundle (latest versions) depends on Microsoft Visual C++ 2015 Redistributable
Download and install KB2919442
Run windows update, which will download and install KB2919335. Alternatively manually download and install KB2919335
Install Visual Studio 2015 C++ Redistributable
I got this issue one time. Reason was Server OS was x64 base and target run time of installer was win-x86. In the publish wizard, win-x86 is the default option for Target Run time. Theoretically x86 application should work in x64. But after deploying the win-x64 , issue resolved.

How to install .NET Framework 4.5.1 in a cloud service role

I get the following warning so the publish of cloud service fails from Azure SDK 2.1.
Warning 1 The project 'WCFServiceSurferlite' targets .NET Framework 4.5.1. To make sure that the role starts, this version of the .NET Framework must be installed on the virtual machine for this role. You can use a startup task to install the required version, if it is not already installed as part of the Windows Azure guest OS. For more details, see http://go.microsoft.com/fwlink/?LinkId=309796.
I can't target to 4.5 because it is not available in Visual Studio 2013.
How can I solve this. Please Help.
Update - April 2 2014 -
* Answering this question as it shows up as one of first results on popular engines, while searching for trying to install Microsoft .NET framework 4.5.1 on Azure Cloud service.
The easiest way would be to set osFamily attribute to "4" in the Cloud Service Configuration file (.cscfg file). This will bring up an instance of Windows Server 2012 R2 with Microsoft .NET framework 4.5.1 installed.
Example:
<ServiceConfiguration serviceName="CloudDeploymentShell" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration" osFamily="4" osVersion="*" ...
Here is a blog post from a guy who deployed 4.5 before it was avail in Azure. The same approach should work for 4.5.1. http://danieljsinclair.wordpress.com/2012/06/28/how-i-got-net-4-5-rc-running-in-a-windows-azure-webrole/
Visual Studio 2013 is in Beta/Preview. If you can't target 4.5 with it then you'll need to either drop back to VS 2012 for your work in Azure or see if you can install 4.5.1 on the role instances using a start up task just as the warning suggests.
As each new Visual Studio and .NET version comes out there is usually a lag before VS supports the Windows Azure tools and again a lag after the .NET version has shipped before it is baked into a Guest OS that you can use in Azure.

Unable to install Windows Azure Plugin for Eclipse with Java (by Microsoft Open Technologies)

I am trying to install the Windows Azure Plugin for Eclipse with Java (by Microsoft Open Technologies) from this URL: http://dl.msopentech.com/eclipse. I use Ubuntu 12.10 and Eclipse "Java EE IDE for Web Developers", Version: Juno Service Release 2, Build id: 20130225-0426.
I followed the steps explained in this tutorial: http://msdn.microsoft.com/en-us/library/windowsazure/hh690946.aspx. But I got this error:
Cannot complete the install because some dependencies are not satisfiable
com.microsoftopentechnologies.windowsazure.tools.sdk.feature.feature.group [0.4.0.201302082023] cannot be installed in this environment because its filter is not applicable.
Can anybody help?
Thanks.
I am surprised by how far you guys had gone. I do not think Azure Eclipse plugin would work on Linux at all. It has dependency on Windows Azure .NET SDK and the Windows Azure emulator inside of it. Get a Windows machine, or dual boot your ubuntu, bro!
Although you may not be able to Install Windows Azure Eclipse Plugin, you should still be able to write your Java program consuming Windows Azure Services ( such as storage, queue, table, service bus, media services ) via Windows Azure SDK for Java.
https://github.com/WindowsAzure/azure-sdk-for-java
Since it is open source, you can even have your own fork of it :)

Using Windows Azure in a local Dev Mode with PHP

We are trying to evaluate and eventually migrate to the windows azure cloud platform.
I am stumbling on the installation process...
I'm currently following this tutorial.
I can't get the Windows development Fabric interface working like on this picture.
When I install the app fabric sdk (downloaded here) I get no .exe program to simulate the cloud...
I installed Windows AppFabric which is not what I need (I think).
I keep on being directed on AppPlatformInstaller which do not install what I need but I'm sure is part of my solution.
You are downloading wrong SDK. For Windows Azure Cloud platform you must download and install Windows Azure SDK And Tools for Visual Studio.
Then you will have a folder %Program Files%\Windows Azure SDK\v1.5\bin. There will be devfabric and devstore folders, under which the local development Frabric and Development Storage executables will reside.
Then if you are targeting .NET based solutions, you will have new project templates in Visual Studio, and everything shall be running smoothly. On the other hand, if you are targeting open source solutions you might want to follow the like provided by Ben.
As for Windows AppFabric - yes, it is wrong in terms that it is not related to Windows Azure at all.
Let us know if you have any issues when downloading and installing latest Windows Azure SDK And Tools for Visual Studio
You may want to check out the docs available from the Microsoft Interoperability Team. They maintain an entire site dedicated to running PHP on Windows Azure
http://azurephp.interoperabilitybridges.com/articles/build-and-deploy-a-windows-azure-php-application
Basically to get it working just install the Windows Azure SDK and with Windows Azure SDK for PHP. Build your PHP application and then run the package command. Your PHP application will be rolled into a Windows Azure project and launched in the local dev fabric

Resources