How to use this in ASP.NET webforms

May 18, 2008 at 3:08 AM
I've been moving through the documentation and looking at the sample project, but I'm having trouble figuring out how to use this in a web form.

Is there anywhere I can find some sample code that, for instance, uses the library to list the contents of a bucket?

I've added the ThreeSharp and ThreeSharp.Wrapper dlls into my bin folder, but can't seem to properly get things going.

Any help is appreciated. Thanks.

Jun 18, 2008 at 7:21 PM
Edited Jun 19, 2008 at 3:28 PM
** EDIT **
Solved!  Head Slapping needed.  I didn't have my Public and Secret Keys loaded after the postback!
** /EDIT **
I'm kinda in the same boat.  I just need to Add and possibly delete movies from S3.  I've looked at the example - but don't quite understand the delegates - but I am trying to use the wrapper.

I create a new ThreeSharpWrapper with my Public Key and SecretKey
I call AddFileObject(buckName, fileName, uploadedPhysicalPath + fileName)

And I get a 403 Forbidden Error - and it's pointing to Affirma.ThreeSharp\Query\ThreeSharpQuery.cs    Line: 211 where it just says "throw;"

Please, any suggestions/pointers/ slaps upside the head are welcome.  I'm missing something, but not sure.