Technology
Could not establish trust relationship for the SSL/TLS secure channel
Let's say we want to use RestSharp [http://restsharp.org/] to call an API method
in an Azure-hosted environment over HTTPS.
var client = new RestClient("https://randomqaenvironment.cloudapp.net");
var request = new RestRequest("resource/{id}", Method.POST);
request.AddUrlSegment("id", 123);
client.Execute
Fixed WCF Azure Service Bus: Access is denied Exception
> Access is denied. Really?! Could you be a little more explicit? The Background I ran into this error recently when trying to deploy an application at a client. We ended up spending way too much time figuring out the root cause of this exception due to the sheer lack of
The specified blob does not exist
> Microsoft.WindowsAzure.StorageClient.StorageClientException: The specified blob does not exist. There are two different scenarios that will throw this exception when trying to call CloudBlob.DownloadText(). The first, and least interesting, is that the blob reference you are holding on to actually doesn't exist. This is simple enough to check
The remote server returned an error: (411) Length Required
> System.Net.WebException: The remote server returned an error: (411) Length Required. This is a pretty common issue that comes up when trying to make call a REST based API method through POST. Luckily, there is a simple fix for this one. This is the code I was using to
404 Error when uploading large files into Windows Azure
I tried to upload a 30MB file into Windows Azure today using my MVC 4 site. When the file got to 99% I got a 404 error saying that my upload Action was nowhere to be found. Fortunately, I successfully uploaded a file earlier in the day at about half
Entity Framework: There is already an open DataReader associated with this Command which must be closed first
> EntityCommandExecutionException {"There is already an open DataReader associated with this Command which must be closed first."} You get this error when your DataContext tries to retrieve a collection of objects from the database and then subsequently tries to write to an object in the same connection. For 99% of the
Why is inserting data into Azure Table Storage so slow?
I am working on a project where we are evaluating whether or not to move from SQL Azure (or whatever it's called this week) to Azure Table Storage. When I started evaluating the performance of inserting data into Table Storage I was astonished to see how slowly things were moving.
The AudienceRestrictionCondition was not valid because the specified Audience is not present in AudienceUris
> ID1038: The AudienceRestrictionCondition was not valid because the specified
Audience is not present in AudienceUris.
Audience: 'http://localhost:54012'
You will get this error when your
Unable to update database to match the current model because there are pending changes
Update-Database > Unable to update database to match the current model because there are pending changes and automatic migration is disabled. Either write the pending model changes to a code-based migration or enable automatic migration. Set DbMigrationsConfiguration.AutomaticMigrationsEnabled to true to enable automatic migration. You can use the Add-Migration command to
Using Entity Framework Database Migrations to Update a Remote SQL Azure Database
I have been using .NET's Entity Framework Database Migrations [http://weblogs.asp.net/fredriknormen/archive/2012/02/15/using-entity-framework-4-3-database-migration-for-any-project.aspx] and SQL Azure on one of my current development projects which has been working out quite nicely for me. However, I eventually got to the point in my development where