Using Startup Task with command line redirection in Windows Azure Role

Recently while working on an incident I found that if you use Windows Azure Startup task with launch some application along with command line redirection (to collect log) directly as below, it may not launch the startup task: ServiceDefinition.csdef: 1: <Task commandLine="Startup\Application.exe >> C:\temp\logfilename.log 2>&1" executionContext="elevated" taskType="background" relativePath="approot\bin" />   As startup task will not…

1

Migrating 32Bit ASP.NET application to Windows Azure Web Role

If you have a 32bit ASP.NET application and decided to port to Windows Azure application you will do the following:   1. Create a Web Role using Windows Azure SDK 1.3 2. Add existing Website (hosted on a 32-bits server) converted to Web Application. 3. Build 4. Test locally in Compute Emulator 5. Deploy it…

0

System.UnauthorizedAccessException with ASP.NET Web Role in Windows Azure

After working in one Windows Azure issue in which the ASP.NET Web Role was stuck in between “Busy” and “Starting”, I decided to write the details to save some time for someone. After I logged in to Windows Azure VM and looked for Application Event logs I found the following two errors:   Error #1:…

0

WebRole with WCF Service got in "Busy" state after adding StandardEndpoint in web.config

I recently worked on an incident in which the Windows Azure application had 1 web role and one WCF role. Initially the basics application with no specific changes worked well on compute emulator and on Windows Azure. After when we added the following configuration in the web.config the application for stuck “Busy” on Azure:  …

0

System.ServiceModel.Channels.ServiceChannel exception during ASP.NET application upgrade from Windows Azure SDK 1.2 to 1.3

When you upgrade your ASP.NET based application from Windows Azure SDK 1.2 to 1.3 it is possible you may hit the following exception: System.ServiceModel.CommunicationObjectFaultedException was unhandled  Message=The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it is in the Faulted state.  Source=mscorlib   StackTrace:     Server stack trace:        at System.ServiceModel.Channels.CommunicationObject.Close(TimeSpan timeout)     Exception rethrown…

0

Dissection of a Windows Azure SDK 1.3 based ASP.NET Web Role in Full IIS mode & HWC

Let’s start from the point that you have an ASP.NET based WebRole as MainWebRole.DLL which you have created using Windows Azure SDK 1.3. The ServiceConfiguration.CSDEF setting can run your webrole in following two modes: 1. Full IIS Mode 2. HWC (Hostable Web Core) Mode Full IIS Mode: Let’s Start from Full IIS Mode. In this…

1

Windows Azure : How to define Virtual Directories in Service Definition (CSDEF) for your site?

In Windows Azure SDK 1.3 you have ability to setup multiple sites within your full IIS role as well as Virtual directories. When you are developing your application and needed to setup Virtual Directories, here I will explain how you can configure VirtualDirectory for specified Site in ServiceDefinition.csdef file. So if you have your VS2010…

1

Windows Azure : There is not enough space on the disk – description and handling error

  If you have your application running on Windows Azure, it is possible that your: 1.  1. Web Role is keep Recycling after successfully running for some amount of time 2.  2. You are not getting anything out from your diagnostics log after sometime   So if you have you application based on Windows Azure…

1