Change basicHttpBinding to wsHttpBinding in azure cloud service web role

So I created a cloud service project in visual studio and added wcf service web role to cloud service.
By default wcf service web role binding is set to basicHttpBinding.
Currently my web.config looks like this:
<?xml version="1.0"?>
<configuration>
<system.diagnostics>
<trace>
<listeners>
<add type="Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorTraceListener, Microsoft.WindowsAzure.Diagnostics, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
name="AzureDiagnostics">
<filter type="" />
</add>
</listeners>
</trace>
</system.diagnostics>
<system.web>
<compilation debug="true" targetFramework="4.0" />
</system.web>
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior>
<!-- To avoid disclosing metadata information, set the value below to false before deployment -->
<serviceMetadata httpGetEnabled="true"/>
<!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information -->
<serviceDebug includeExceptionDetailInFaults="false"/>
</behavior>
</serviceBehaviors>
</behaviors>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
</system.serviceModel>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
<directoryBrowse enabled="true"/>
</system.webServer>
</configuration>
How do I change my config to use wsHttpBinding?

Hi,
Please refer to
http://msdn.microsoft.com/en-us/library/ms733099.aspx. From my experience, in Windows Azure, we cannot use Windows authentication (the default configuration for WSHttpBinding), unless we use WAAD and let the cloud server join the local domian. So it is
needed to turn off authentication, or use an alternative authentication mechanism (such as username and password).
Best Regards,
Ming Xu
<THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
Thanks
MSDN Community Support
Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

Similar Messages

  • Azure Web Apps (Web Sites) vs Azure Cloud Services (Web Roles)

    Hi All,
    Need some help in choosing between the Web App or a Web Role for a MVC5 application that we are going to build. We are planning to build an MVC5 application which will consume a Web API (hosted on Azure). The MVC5 application would be an external site and
    it needs to be load balanced and it would be hosted on Azure.
    We are not able to decide on the hosting options for the same ... between Azure Web Apps and a Web Role. We didnt come across anything which will help us to make a choice as to where the Web Apps fall short or which one should one go for etc.
    Any help on this front would be highly appreciated.
    Regards,
    Saurabh

    To make your life easier you should start by using Web Apps, they have many more features than Web Roles (git deployment, backup, free sku, webjobs, continuous integration and many more).
    There are some scenarios that are not supported like remote desktop to the VM.
    But the reason you should start with them is that unlike Web Roles you won't have any special code relying on the environment you are running on so you will be able to easily move to web roles in case you find a scenario that is not supported by Web Apps.

  • Warning: This request requires buffering data to succeed (while Publishing using VS 2012 to Cloud Service - Web Role

    While publishing using VS 2012 professional to Azure Web Role getting following warning. After this warning even if i waited for hours, publish process never finish and then I have to manually deploy the package on Azure Cloud Instance.
    Warning: This request requires buffering data to succeed.

    Thank you for reply @Will,
    I do not have access to my work station computer at this moment. will share the screenshot. Basically what happens is -
    1. I start the publish wizard on Windows Azure Project (which as one web role configured)
    2. Proceed the publish wizard with advanced options enabled for remote debugging and remote connection enabled.
    3. The publish wizard finish and it starts uploading the package and configuration on the azure could service.
    4. In the Microsoft Windows Azure activity log pane of the Visual Studio 2012 Professional, after 10-15 minutes it starts showing following warning continously, i even waited for few hours but publish process never completes. Finally i have cancel the publish
    process and upload packages and config manually on the azure portal. 
    Warning: This request requires buffering data to succeed.

  • Cloud service web role did not get request

    Hi Team,
    we have an application host in web role in a cloud service, 
    sometimes it keeps loading when clicking a button in GUI and got no response till our GUI timeout (30 minutes)
    we use Fiddler to trace the http request and also check IIS logs and found that sometimes the web role didn't get a request,  sometimes the IIS
    got the request and finished to processe the request but didn't return result to GUI.
    it seems the message lost during interaction between UI and web role.
    note that this problems comes out just recently.
    is there some known issues related with this kind of problems. 
    thanks in advance.

    hi Baker,
    Firstly, I need confirm what's meaning is GUI from your description ? The GUI is your cloud service project UI? Or your UI in your client?
    Secondly, base on my experience, we usually could occur timeout error because of the azure load balancer and the long time request.
    For this error, I recommend you refer to those thread:
    Azure Web Role - Long Running Request (Load Balancer Timeout?)
    Windows Azure Load Balancer TimeOut for Cloud Service Roles (PAAS Web/Worker)
    Windows Azure Load Balancer Timeout Details
    http://social.msdn.microsoft.com/Forums/windowsazure/en-US/89b283f0-dfca-49a7-99fe-c3b73d77ff6d/azure-load-balancer-sending-http-request-to-multiple-web-role-instances?forum=windowsazuredevelopment
    If I misunderstood, please let me know.
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • What are Azure limitations for Websockets in Cloud Services (web and worker role)?

    A WebSocket Server should be built on Azure platform with OnPrem connections and have questions regarding limitations for Websockets in Azure Cloud Services - web and worker roles.
    Websockets can be configured for Web Sites and limitations are understood, but Azure Websites is not an option. 
    Nevertheless it is planned to run a web service (without UI - no web site) as a Cloud service which has secure websocket (WSS) connections to OnPrem machines. Websocket protocol is enabled for IIS8 on Cloud services web and worker roles. Azure Service Bus Relay
    is not an option.
    Questions:
    1) Are Websockets supported for Azure Cloud services web and worker roles? we assume yes
    2) What are potential limitations from Azure side to support concurrent Websocket connections? We are aware that CPU, memory etc are limitations, but are there additional limitations from MS Azure side? 
     

    Hi,
    As I know, azure cloud service web and worker role support Websockets, users can connect to the role via the special endpoint, if we use Azure cloud service, I think we can monitor the metrics such as CPU, memory, etc... and scale our cloud service via these
    metrics to keep the websockets working, refer to
    http://azure.microsoft.com/en-us/documentation/articles/cloud-services-how-to-scale/ for more information about how to scale a cloud service.
    Regards

  • Async / Await in Cloud Services Worker Roles?

    Good evening,
    I was wondering if and how one would be able to utilize async / await for Azure Cloud Services' Worker Roles? Basically I have background jobs that will/shall run on worker roles, however many of those are performing up/downloads from Azure Storage blobs
    and ideally I'd like to await those calls.
    So is async/await natively supported for CS Worker Roles (using Azure SDK 2.5) and if so, how? And if not.. is it planned at all?
    Thanks,
    -Jörg

    Hi,
    I would suggest you have a look at this thread:
    http://stackoverflow.com/questions/15991287/async-await-in-azure-worker-role-causing-the-role-to-recycle
    A simple solution is to just do this:
    public override void Run()
    RunAsync().Wait();
    public async Task RunAsync()
    while (true)
    await Task.Delay(60000);
    Hope this helps.
    Best Regards,
    Jambor
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • "Failed to debug the Windows Azure Cloud Service project. The Output directory .... does not exist" - Looking for Solution Config Name Folder?

    Good evening,
    I've been working on and with a VS2013 Update 2 / Azure SDK 2.3 Cloud Service project for a while now and never had a problem debugging it (setting the .ccproj Project as Startup Project) but at the moment I cannot Debug it anymore - I always get the following
    error message:
    Failed to debug the Windows Azure Cloud Service project.  The output directory 'D:\Workspace\Development\Sources\AzureBackend\csx\Backend - Debug' does not exist.
    Now what's odd here, is the last part - the "Backend - Debug" is the Solution configuration name, ALL projects in that particular solution configuration are set to the Debug Configuration. The .ccproj file also only specifies Debug|Any CPU (and
    Release|Any CPU respectively) as its output folder(s). Why is the Solution config appearing up there?
    And more importantly.. why is this happening and what can I do?!
    Thanks,
    -Jörg
    Ps: there seems to be a related
    connect bug and these sorts of issues do appear around the forums but none contains a solution (neither reinstalling the Azure SDK nor cloaking the workspace/re-retrieving & building everything worked).

    Good morning Jambor,
    I already tried de-installing everything Azure-Tooling related including the Azure SDK, Restarting my machine and re-installing the SDK.
    Same result. I can build the .ccproj perfectly fine and the cspack file IS generated perfectly fine, only debugging does not work and there's NO information in the VS output window (again - all projects succeed to build).
    I tried explicitely running VS as Administrator, no change. I removed all IIS Express sites (as the ccproj has one web worker role), remapped my local TFS workspace.. nothing helped.
    As building works, deploying to Azure Cloud Service (manually and via Publish inside VS) all works -perfectly-, I am pretty sure this IS a bug and I'd LOVE to help to get this fixed. As I said, currently I cannot debug and/or run & test my work, hence
    I cannot do ANY work.

  • Managing connection strings Azure Cloud service deployment

    I have an azure cloud service project which comprises of one worker role and one web role. I need to have both staging and live deployments but I need them to have different connection strings because the worker role generates lots of data which is reported
    by the web application and I would not want to have test data in production.
    What's the best way to configure this so that I can quickly swap or promote from staging to live and have the connection strings just update without having to republish from visual studio using a different configuration.

    Hi,
    Two ways to do it - 
    1. Keep your connection strings in cscfg so that you can change those on the fly after the deployment using azure management portal.
    2. Keep connection string in the web configuration file at the time of deployment and have cscfg settings which can override those i.e. re-write those in the web configuration file when role instances are restarted.
    I too experienced something similar to this but not for connection strings, it was for ACS i.e. authentication settings which I needed to have differently on both deployment slots, refer my blog post http://passionatetechie.blogspot.in/2014/02/moving-acs-settings-in-cloud.html you
    can do similar for connection strings of your application.
    Bhushan | < href='http://www.passionatetechie.blogspot.com'>Blog | <a href="http://in.linkedin.com/pub/bhushan-gawale/29/327/405"> LinkedIn</a> | <a href="http://twitter.com/BhushanGawale">Twitter</a>

  • Windows Azure Cloud Service with MVC4WebRole template giving "Not running in a hosted service or the Development Fabric." Error.

    Azure SDK used - 1.7 & 2.0
    When we create new project for Windows Azure Cloud Service with MVC4WebRole template & try to run it locally its giving error as "Not running in a hosted service or the Development Fabric."
    We are aware that making Azure project as start up project will resolve this error but we want to run the application locally before testing it with cloud.
    It’s not working with Cassini so we have tried with IIS but still it’s giving the same error.
    In another project when we added ASP.Net MVC4 Application & then for that project we have generated the Azure cloud service project using "Add Windows Azure Cloud Service Project". By this way debugging it locally works fine.
    Is there something additional settings present in Windows Azure Cloud Service with MVC4WebRole template which is causing this issue?

    hello,
    According your description, I try to reproduce it in my PC.
    >1. I create a could project and add a MVC4 web role into project.
    >2. I set the azure project as a start project and run, it works fine.
    >3. I change the MVC4 web role as a startup project and run, it works fine too. Of course before this, I exited the Azure Simulator.
    But this project was a empty project. It didn't included azure DLL file, such as Diagnostics file. So I think you could comment out the "system.diagnostics" node and try again. Also, you could refer to this same thread:http://stackoverflow.com/questions/13879443/not-running-in-a-hosted-service-or-the-development-fabric-production-not-debug
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Can't publish to Azure Cloud Service from Visual Studio 2013

    I have a VS project that I upgraded from VS 2012 to VS 2013. I can run it locally, and had no issues publishing to Azure when I was using VS 2012. When I attempt to publish the upgraded app to an Azure Cloud Service that already exists, I am getting this
    error.  Note that I have checked the Service Config files and did a search on the entire solution and can not find any reference to "LocalStorage1" anywhere in the Project or Solution. I have another VS 20113 Project that publishes just fine
    to Azure Cloud Service. Any ideas on how to fix this?
    PUBLISH ERROR:
    Windows Azure could not find the resource LocalStorage1 in the service package. To upgrade the deployment, you must add the resource. Otherwise, perform a new deployment.

    That's actually what I meant in my first post. When publishing to a new service, it is fine, because the deployment does not have to compare what is already there (it is a new service, so nothing is there) and what is in your package. But while upgrading
    a service, bunch of settings have to match between an existing service and the package you are trying to upload. So the error you got wasn't about you having something extra in your package, but having something extra in your existing service and missing in
    the package you were uploading. Hope that helps.
    Anyway, please move this question to cloud services forums (this one is for web sites only), as there are experts in that area and they might be able to help you better.
    Thanks,
    Petr

  • Can a Worker Role process call Antimalware for Azure Cloud Services programmatically?

    I'm trying to find a solution that I can use to perform virus scanning on files that have been uploaded to Azure blob storage.  I wanted to know if it is possible to copy the file to local storage on a Worker Role instance, call Antimalware for Azure
    Cloud Services to perform the scan on that specific file, and then depending on whether the file is clean, process the file accordingly.  If the Worker Role cannot call the scan programmatically, is there a definitive way to check if a file has been scanned
    and whether it is clean or not once it has been copied to local storage (I don't know if the service does a real-time scan when new files are added, or only runs on a schedule)?  

    Hi,
    I would suggest you have a look at this article:
    http://azure.microsoft.com/blog/2014/10/30/microsoft-antimalware-for-azure-cloud-services-and-virtual-machines/, please note the Microsoft Antimalware Client and Service is not installed by default in cloud service, please try to use the PowerShell
    cmdlet, Set-AzureServiceAntimalwareExtension to enable antimalware in your cloud service. Here's some more info:http://msdn.microsoft.com/en-us/library/azure/dn771718.aspx
    Best Regards,
    Jambor
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Is it possible to do Continuous deployment for azure cloud services(website,web and worker roles) using VSO Release management?

    Hi,
    I am trying to do continuous deployment using visual studio online and release management for Azure cloud services. But not able to find the way to do it(with the help of different blogs, those are describing using VM only).
    I tried using Release management visual studio extension also. But no Luck.
    Please help me if it is possible to do continuous deployment using release management.
    Thanks,
    Phani

    Hi,
     Please refer to the following Forum Thread with similar question which has been answered. Let us know if this helps.
     https://social.msdn.microsoft.com/Forums/en-US/9d8322f6-36e5-4cca-a982-d420d34d2072/realease-management-deployment-to-azure-websites-webworker-roles?forum=tfsbuild
    Regards,
    Nithin Rathnakar

  • Is there a list of best practices for Azure Cloud Services?

    Hi all;
    I was talking with a Sql Server expert today and learned that Azure Sql Server can take up to a minute to respond to a query that normally takes a fraction of a second. This is one of those things where it's really valuable to learn it when architecting as
    opposed to when we go live.
    Cloud Services are not Sql Server (obviously) but that led to the question - Is there a list of best practices for Azure Cloud Services? If so, what are they?
    We will be placing the cloud services in multiple datacenters and using traffic manager to point people to the right one. The cloud service will set between an IMAP client & server, pretending to be the mail client to the server, and the server to the client.
    Mostly it will pass all requests & responses across from one to the other.
    thanks - dave
    What we did for the last 6 months -
    Made the world's coolest reporting & docgen system even more amazing

    hi dave,
    >>Cloud Services are not Sql Server (obviously) but that led to the question - Is there a list of best practices for Azure Cloud Services? If so, what are they?
    For this issue, I have collected some blogs and document about best practices for azure cloud service, you can view them, but I am not sure they are your need.
    http://msdn.microsoft.com/en-us/library/azure/xx130451.aspx
    http://gauravmantri.com/2013/01/11/some-best-practices-for-building-windows-azure-cloud-applications/
    http://www.hanselman.com/blog/CloudPowerHowToScaleAzureWebsitesGloballyWithTrafficManager.aspx
    http://msdn.microsoft.com/en-us/library/azure/jj717232.aspxhttp://azure.microsoft.com/en-us/documentation/articles/best-practices-performance/
    >>The cloud service will set between an IMAP client & server, pretending to be the mail client to the server, and the server to the client. Mostly it will pass all requests & responses across from one to the other.
    For your scenarioes, If you'd like to communicate with each instances, I recommend you refer to this document (
    http://msdn.microsoft.com/en-us/library/azure/hh180158.aspx ). And generally, if we want connect the client to server on Azure, the service bus is a good choice (http://azure.microsoft.com/en-us/documentation/articles/cloud-services-dotnet-multi-tier-app-using-service-bus-queues/
    If I misunderstood, please let me know.
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to develop and deploy multiple worker roles in single azure cloud services?

    I am Manikandan, From Myeasydocs.com.
    We have developed our application as web projects.  Now we are going to move to azure cloud services, i have successfully migrated our application in cloud services and it worked fine. I am having difficulties with back ground task. i have nearly 12
    schedule tasks in our applications. I need assist on creating multiple worker role creation and deployment.
    Is there is any site on explaining the worker role process in details?
    Thanks in advance .. !!

    Hi,
    In Worker role, Applications hosted within worker roles can run asynchronous, long-running or perpetual tasks independent of user interaction or input. It is a service component that is useful for generalized development, and may perform background processing
    for a web role. A worker role is frequently used for long-running tasks that are non-interactive, but you can host any type of workload.
    I suggest you to follow the below article which explains about Creating and Deploying of Web Roles and Worker Roles in Azure Cloud Service using Visual Studio.
    https://msdn.microsoft.com/en-us/magazine/jj618299.aspx
    Hope this helps !
    Regards,
    Sowmya

  • Windows Azure Cloud Service Downtime alert

    Hi,
    One of the Cloud services that we have deployed on Windows Azure Cloud services using Azure Worker role is unexpectedly transitioning to Stopped state. There doesn't appear to be any valid reason behind this  and it runs normally after we switch to
    running state from portal. 
    Is it possible to develop some alert service which informs the Administrator or configured alert users that the Cloud service has shut down ? We tried to configure the Windows Azure alert but the metrics & logging doesn't seem to match with Cloud service
    downtime. Please let us know what is the diagnositics or logging option which we should make use to come up an optimal design for the Alert system.
    Thanks in advance,
    Deepesh
    Thanks & Regards, Deep

    Hi,
    From my experience, several operations in the Service Management API permit you to manage your cloud service either by referencing a deployment by its deployment name, or by referencing the deployment environment (staging or production) in
    which the deployment is running. Refer to
    http://msdn.microsoft.com/en-us/library/windowsazure/ee460812.aspx for more information about Operations on Cloud Services, we can do lots of things via this API, in “Get Cloud Service Properties” section, it has a “RoleInstanceList” property, refer to
    http://msdn.microsoft.com/en-us/library/windowsazure/ee460806.aspx#bk_roleinstancelist for more information about
     RoleInstanceList. In this article it has PersistentVMDowntime property, the detail information as following.
    PersistentVMDowntime
    Specifies information about when the Virtual Machine has been started and stopped.
    The PersistentVMDowntime element is only available using version 2012-03-01 or higher.
    Hope this helps, if this didn’t give you help, please feel free to let me know.
    Best Regards
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for