windows azure worker role errors
I am new to windows azure and tried the following two things in the local
development environment.
a. create a worker role instance to host a WCF service. It worked but
instead of listening to 127.0.0.1 it listens on 127.255.0.0. Is there any
change that I have to make to run in 127.0.0.1 instead of 127.255.0.1.
b. Second, i tried using the Q service to pass messages between two worker
roles. the code that is being used is as below. The connection string is
done followed the document
http://www.windowsazure.com/en-us/develop/net/how-to-guides/queue-service/
and I am using local development environment.
Microsoft.WindowsAzure.Storage.CloudStorageAccount cs =
Microsoft.WindowsAzure.Storage.CloudStorageAccount.Parse(Microsoft.WindowsAzure.CloudConfigurationManager.GetSetting("QueueConn"));
Microsoft.WindowsAzure.Storage.Queue.CloudQueueClient qc =
cs.CreateCloudQueueClient();
Microsoft.WindowsAzure.Storage.Queue.CloudQueue q =
qc.GetQueueReference("demoq");
if (q.CreateIfNotExists())
{
System.Diagnostics.Trace.WriteLine("creating Q now");
}
else
{
}
q.AddMessage(new
Microsoft.WindowsAzure.Storage.Queue.CloudQueueMessage("sample
message"));
Unfortunately, i am receiving 400 Bad request message? What could be wrong
in this? Am not able to figure out. Any help in this regard, will be
highly appreciated.
Best..
No comments:
Post a Comment