Ask a questionAsk a question
 

General DiscussionWorking with WCF in Windows Azure

  • Thursday, April 02, 2009 7:23 PMSteve MarxMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    You may have observed issues with running and consuming Windows Communication Foundation services on Windows Azure.  While there are unfortunate bugs affecting certain scenarios, WCF is supported on Windows Azure.

     

    This article provides a number of samples illustrating the usage of WCF on Windows Azure platform: http://code.msdn.microsoft.com/wcfazure/.

     

    This wiki page discusses the issues you may hit when using WCF on Windows Azure and provides workarounds for each of them: http://code.msdn.microsoft.com/wcfazure/Wiki/View.aspx?title=KnownIssues.

    The WCF and Windows Azure teams are working together to fix these and improve WCF development experience on Windows Azure.

All Replies

  • Sunday, August 09, 2009 3:09 PMzzeeshann Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Has Code
    I get this error

    No account key specified! body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;} p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px} b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px} H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red } H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon } pre {font-family:"Lucida Console";font-size: .9em} .marker {font-weight: bold; color: black;text-decoration: none;} .version {color: gray;} .error {margin-bottom: 10px;} .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }

    Server Error in '/' Application.

    No account key specified!

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.ArgumentException: No account key specified!

    Source Error:

    Line 440:            if (string.IsNullOrEmpty(key) && !allowIncompleteSettings)
    Line 441:            {
    Line 442:                throw new ArgumentException("No account key specified!");
    
    Line 443:            }
    Line 444:            if (string.IsNullOrEmpty(endpoint) && !allowIncompleteSettings)

    Source File: C:\Program Files\Windows Azure SDK\v1.0\samples\StorageClient\Lib\StorageAccountInfo.cs    Line: 442

    Stack Trace:

    [ArgumentException: No account key specified!]
       Microsoft.Samples.ServiceHosting.StorageClient.StorageAccountInfo.GetAccountInfoFromConfiguration(String accountNameConfiguration, String accountSharedKeyConfiguration, String endpointConfiguration, String usePathStyleUrisConfiguration, Boolean allowIncompleteSettings) in C:\Program Files\Windows Azure SDK\v1.0\samples\StorageClient\Lib\StorageAccountInfo.cs:442
       Microsoft.Samples.ServiceHosting.StorageClient.StorageAccountInfo.GetAccountInfoFromConfiguration(String endpointConfiguration, Boolean allowIncompleteSettings) in C:\Program Files\Windows Azure SDK\v1.0\samples\StorageClient\Lib\StorageAccountInfo.cs:269
       Microsoft.Samples.ServiceHosting.StorageClient.StorageAccountInfo.GetDefaultTableStorageAccountFromConfiguration() in C:\Program Files\Windows Azure SDK\v1.0\samples\StorageClient\Lib\StorageAccountInfo.cs:244
       MediaTube_WebRole.FirstRequestInitialization.ApplicationStartUponFirstRequest(HttpContext context) in D:\DOTNET\Cloud\MediaTube\MediaTube\MediaTube_WebRole\Global.asax.cs:81
       MediaTube_WebRole.FirstRequestInitialization.Initialize(HttpContext context) in D:\DOTNET\Cloud\MediaTube\MediaTube\MediaTube_WebRole\Global.asax.cs:74
       MediaTube_WebRole.Global.Application_BeginRequest(Object sender, EventArgs e) in D:\DOTNET\Cloud\MediaTube\MediaTube\MediaTube_WebRole\Global.asax.cs:30
       System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +68
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
    


    Version Information:  Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053

  • Friday, August 14, 2009 9:19 AMzzeeshann Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Any solution for this error?
  • Friday, August 14, 2009 5:44 PMSteve MarxMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    zzeeshann, please start a new thread.  The error above doesn't seem to have anything to do with WCF.
  • Tuesday, September 15, 2009 2:26 PMAmit J R Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hello Steve,

    i went through quite a few articles on WCF and AZURE but found no solution to the issue i am facing. I hope you can unblock me. The problem statement is as under:


    I have a SecureFacebook.svc file in a AZURE webrole. When i set the Webrole as the start up project i get the WSDL generated (which i think is fine since im running it on localhost i.e. the URL formed is http://localhost:50892/SecureFacebook.svc?wsdl ) but when i set the AZURE deployment as teh startup project and run the application i get the url http://127.0.0.1:81/SecureFacebook.svc and on clicking svcutil.exe http://<MACHINE NAME>/securefacebook.svc?wsdl i get

    The webpage cannot be found.


    Any help from your end would be appreacited since i have hit  a roadblock. I have followed the steps given in this article but it did not solve the issue http://social.msdn.microsoft.com/Forums/en/windowsazure/thread/57ae928c-6c29-4e67-9fc3-d8969ca0574a/


    Hope you reply soon
    Amit Rawat
  • Wednesday, September 16, 2009 3:11 PMweaver finch Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi Z,
     This issue is regarding StorageClientLibrary which you are using to Access Azure Storage...
    when you registered to Azure and Creates Storage Account.. It provides you Account Key,
    As you are using StorageClient.StorageAccountInfo.GetAccountInfoFromConfiguration() method to access Account Key,

    That Key should be added in AppSetting of your Application...

        <add key="AccountName" value="xyz" />
        <add key="AccountSharedKey" value="9a/34534545535+65675gfhgfhjhjgjghj==" />
        <add key="BlobStorageEndpoint" value="http://blob.core.windows.net" />
       <add key="TableStorageEndpoint" value="http://Table.core.windows.net" />
    if you are using Cloud S ervice please mention same information in ServiceConfiguration file So that u can run your application
    on Cloud and on Development fabric(with BlobStorageEndpoint as http://127.0.0.1:10000/ for locally) as well...


    dattaadsule
  • Sunday, September 20, 2009 8:24 AMAzureExplorer Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals