Windows Azure Platform Developer Center >
Microsoft Visual Studio 2010 Beta 2 Forums
>
Windows Azure
>
Working with WCF in Windows Azure
Working with WCF in Windows Azure
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
- 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 - Any solution for this error?
- zzeeshann, please start a new thread. The error above doesn't seem to have anything to do with WCF.
- 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 getThe 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 - 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 - I have a simple example failing w/ dev fabric:
http://social.msdn.microsoft.com/Forums/en-US/windowsazure/thread/4620ec49-ea39-47cd-a193-d076cf0a7dbf
Any ideas?


