Running on Windows Azure, need help

839 views
Skip to first unread message

Angela Rogers

unread,
Jan 13, 2014, 2:28:55 PM1/13/14
to google-api-d...@googlegroups.com
Currently, on my localhost I am using the Google Api .Net client (the latest 1.7 beta) and it works perfectly. However, when I upload it to my Windows Azure server, I run into a problem. I've narrowed it down to this line:
private static readonly IAuthorizationCodeFlow flow =
new GoogleAuthorizationCodeFlow(new GoogleAuthorizationCodeFlow.Initializer
{
ClientSecrets = new ClientSecrets
{
ClientId = ClientID,
ClientSecret = ClientSecret
},
Scopes = new[] { CalendarService.Scope.Calendar },
DataStore = new FileDataStore("Calendar.Api.Auth.Store")
});

I get the error: System.UnauthorizedAccessException: Access to the path 'Calendar.Api.Auth.Store' is denied.

I'm thinking I'll have to use the blob storage on Azure, but not sure the best way to do this. Has anyone tried this on Azure?
Thanks!

Eyal Peled

unread,
Jan 13, 2014, 2:39:34 PM1/13/14
to google-api-d...@googlegroups.com



--
You received this message because you are subscribed to the Google Groups "google-api-dotnet-client" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-api-dotnet-...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Angela Rogers

unread,
Jan 13, 2014, 4:22:50 PM1/13/14
to google-api-d...@googlegroups.com
On Monday, January 13, 2014 12:39:34 PM UTC-7, Eyal Peled wrote:
> Check the answer in this thread - http://stackoverflow.com/questions/20033924/deploying-asp-net-to-windows-azure-cloud-application-gives-error-when-running-o
>
>

I already ran across that post. I am trying to implement my own IDataStore using Cloud Blob storage on Azure, but I haven't succeeded yet.

Eyal Peled

unread,
Jan 13, 2014, 4:35:45 PM1/13/14
to google-api-d...@googlegroups.com
Sorry I've not experience with that, but it would be nice if after you will figure that out we can add your data store to the core library :)
Take a look in our BecomingAContributor page.

Anyway in the thread that I sent you someone configured IIS to work with the file data store...

Thanks!
Eyal


Angela Rogers

unread,
Jan 13, 2014, 5:23:44 PM1/13/14
to google-api-d...@googlegroups.com
You can't really configure many IIS settings on Azure. However, I was able to modify the FileDataStore file to use Windows Azure Storage. I am attaching myDataStore.cs file. I created a blob storage container called "googlecalendars" first before running this because for some reason it was having difficulty creating it if it didn't exist. You can change the name in this file to match your blob storage container. I hope this helps someone struggling with using the google api on Windows Azure.
--Angela
myDataStore.cs
Reply all
Reply to author
Forward
Message has been deleted
0 new messages