azure-web-roles

Why can't Azure find IISConfigurator.exe in my cspkg?

a 夏天 提交于 2020-01-07 01:22:56
问题 I am using the Azure 2.5 SDK to upload a cspkg + cscfg to create a new web role deployment in Azure. When I do, I see the following error with status BadRequest . {"BadRequest : The file provided is not a valid service package. Detailed error code: {0} Invalid application runtime - a runtime component is missing:/base/x64/IISConfigurator.exe."} Where {0} is the role/project name. However , when I inspect the contents of my cspkg file, the base/x64 directory DOES contain IISConfigurator.exe. I

List all instance endpoints in Azure Cloud

浪尽此生 提交于 2020-01-06 03:15:05
问题 How do I list all the endpoints in the Azure Cloud and not just the endpoints on the current role instance? I've tried the following code but it only lists the endpoints on the current Azure instance and not on any other Azure instances: void ListCloudInstances() { var instances = new StringBuilder(""); foreach (var role in RoleEnvironment.Roles) { instances.AppendFormat("<h2>Role <em>{0}</em></h2><br/>", role.Value.Name); if (role.Value.Instances.Count == 0) instances.AppendFormat("<small

How to get .publishsettings for Web Deployable Web Role?

廉价感情. 提交于 2020-01-05 06:28:16
问题 I enabled the Web Deploy feature for my Web Role and deployed it. But how can I get hold of the .publishsettings file so I can create a Publishing Profile for it? This 2 year old article states that it should have been created automatically, but I haven't got that in my profile manager. Any ideas? 回答1: If you are using Visual Studio 2012 or greater, the server explorer to the left will have several Azure items. Specifically the Windows Azure Compute is what we are looking for, right click on

How does Azure web role happen to run without an entry point?

别来无恙 提交于 2020-01-05 03:05:44
问题 Out of curiosity I opened my Azure web role project, navigated to the file that contained the RoleEntryPoint descendant class and completely removed that class definition . Then I packaged the role and deployed it in Azure - the role started without any error indication. How could that possibly work? 回答1: In addition to what DarwkwingDuck said, I will just mention that RoleEntryPoint Provides methods to run code when a role instance is initialized, run, and stopped. If we continue to read

Azure: How to execute a startup task delayed?

风格不统一 提交于 2020-01-04 05:59:20
问题 I have two Sites within my WebRole and have defined a Startup task. The first line works fine, it creates a new App pool for me: %WINDIR%\system32\inetsrv\appcmd.exe add apppool /name:"VCPool" /managedRuntimeVersion:"v4.0" /managedPipelineMode:"Integrated" Now I would like to change my second to this new created AppPool, but adding another line right after, doesn't help. %WINDIR%\system32\inetsrv\appcmd.exe set app "WebRole_IN_0_VC/" /applicationPool:"VCPool" It seems the second site is

Azure: How to execute a startup task delayed?

三世轮回 提交于 2020-01-04 05:59:11
问题 I have two Sites within my WebRole and have defined a Startup task. The first line works fine, it creates a new App pool for me: %WINDIR%\system32\inetsrv\appcmd.exe add apppool /name:"VCPool" /managedRuntimeVersion:"v4.0" /managedPipelineMode:"Integrated" Now I would like to change my second to this new created AppPool, but adding another line right after, doesn't help. %WINDIR%\system32\inetsrv\appcmd.exe set app "WebRole_IN_0_VC/" /applicationPool:"VCPool" It seems the second site is

Downloading encrypted file from Window Azure storage

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-04 02:39:06
问题 I have created a MVC WebRole Window Azure application where i upload encrypted files to Azure blob storage using SymmetricAlgorithm (Rijndael) like this Controler>Action is [HttpPost] public ActionResult UploadImage_post(HttpPostedFileBase fileBase) { if (fileBase.ContentLength > 0) { // Retrieve a reference to a container Microsoft.WindowsAzure.StorageClient.CloudBlobContainer blobContainer = _myBlobStorageService.GetCloudBlobContainer(); Microsoft.WindowsAzure.StorageClient.CloudBlob blob =

Set document root in Zend Framework 1.12.x application in Azure Cloud Service

断了今生、忘了曾经 提交于 2020-01-03 05:47:05
问题 in relation to my other question on how to set the document root for a Azure Web Site, I would like to know how to do the same with a Cloud Service. I've used the Azure Powershell Tools to create a package of my application and succesfully uploaded it to the cloud. But setting document root is not working. My ServiceDefinition.csdef looks like this: <?xml version="1.0" encoding="utf-8"?> <ServiceDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001

Does a WebRole on Windows Azure has to be stateless?

别来无恙 提交于 2020-01-03 02:48:08
问题 I came across an interesting situation. I have rebootet my WebRole through the Dashboard. Once the WebRole was up and running again, I have remote desktoped into the WebRole and discovered that the entire folders of my published site was wiped and replaced with the one from the package. Only the textfiles outside those folders like on the desktop have survived it. Unless its the entire drive E: that gets wiped and reinstalled when attempting a reboot. So now my thoughts that since VMs can be

Is it possible to have the Windows Azure emulator open the browser to a URL other than 127.0.0.1

让人想犯罪 __ 提交于 2020-01-01 16:58:48
问题 Simple question but lots of meaning/discussion behind!!! Is it possible to have the Windows Azure emulator open the browser to a URL other than 127.0.0.1 and port 81? 回答1: Follow the steps to change 127.0.0.1 to desire IP Compute Emulator Settings: Go to %Program Files%\Microsoft SDKs\Windows Azure\Emulator\devfabric Take backup of “DevFC.exe.config” so that if something goes you can revert it back. Change following settings to desired IP address range and subnet: <add key="StartIPAddress"