This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi, _context = new LightSpeedContext<UserManagementUnitOfWork> For M/DB, I simply add the 'URL' parameter to the ConnectionString: _context = new LightSpeedContext<UserManagementUnitOfWork> Now when I do the following: [Test] I get this picture:
Amazon.SimpleDB.AmazonSimpleDBException: The request signature we calculated does not match the signature you provided. Check your Secret Access Key and signing method. Consult the service documentation for details
ErrorCode: SignatureDoesNotMatch ErrorType: Unknown StatusCode: Forbidden XML: <?xml version='1.0'?> <Response><Errors><Error><Code>SignatureDoesNotMatch</Code><Message>The request signature we calculated does not match the signature you provided. Check your Secret Access Key and signing method. Consult the service documentation for details</Message></Error></Errors><RequestID>6c6a1ccc-b72f-bd41-188b-4372536bedb8</RequestID></Response> RequestId: 6c6a1ccc-b72f-bd41-188b-4372536bedb8 at Amazon.SimpleDB.AmazonSimpleDBClient.Invoke[T](IDictionary`2 parameters) at Amazon.SimpleDB.AmazonSimpleDBClient.Select(SelectRequest request) at ?.?.?.?.(AmazonSimpleDB , IEnumerable`1 , IEnumerable`1 , String , Page , ILogger , Boolean ) at ?.?.?.?() at ?.?.?..ctor(IUnitOfWork , IEnumerable`1 , ProviderOptions ) at ?.?.?(IUnitOfWork , IEnumerable`1 , ProviderOptions ) at ?.?.(TypeModel , Query , IList ) at ?.?.(UnitOfWorkBase , TypeModel , Query , IList ) at ?.?.(Query , TypeModel , IList ) at ?.?.(Query , IList ) at Mindscape.LightSpeed.UnitOfWork.Find(Query query, IList results) at Mindscape.LightSpeed.UnitOfWorkBase.Find(Query query) at Mindscape.LightSpeed.Linq.Plan.SingleQueryPlan.ExecuteImmediate(IUnitOfWork unitOfWork, Type returnType) at Mindscape.LightSpeed.Linq.LinqQueryProvider.Execute(Expression expression) at Mindscape.LightSpeed.Linq.LinqQueryProvider.System.Linq.IQueryProvider.Execute(Expression expression) at Mindscape.LightSpeed.Linq.LinqQuery`1.GetEnumerator() at LightSpeedAndSimpleDB.Domain.Test.UsageAccountFixture.CreateRepositories() in D:\Projects\Spikes and Trials\LightSpeedAndSimpleDB\LightSpeedAndSimpleDB.Domain.Test\UsageAccountFixture.cs:line 108 *** ConsoleOutput ***
<?xml version="1.0" encoding="utf-16"?> <SelectRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://sdb.amazonaws.com/doc/2009-04-15/"> <SelectExpression>SELECT Email, Name, Password FROM UsageAccounts </SelectExpression> <ConsistentRead>false</ConsistentRead> </SelectRequest> I've no idea what the problem here might be, other than what the Response already says - which doesn't really help. My best bet would be the presence of the forward slash in the Secret Key?!
To avoid as much variation as possible, I'm using my original AWS credentials also against M/DB here. I may add that I also have the SimpleDB Management Tools running against M/DB with the above credentials - no problems here. Any idea/hint? (I know that this is strictly speaking a problem that comes from the M/DB side, but I'm not exactly sure how - and if - to get support from them...) Thomas |
|
|
Accidentially hit a wrong key... |
|
|
Hello Thomas, Not a problem on the title - I've corrected it for you. Would you be able to email a zip of your model to use please? Just for repro purposes (you can email it to support@mindscape.co.nz or attach a zip file to your post here). Be sure not to include any assemblies in the zip file as our mail partner blocks them even when in ZIP files. It's a public holiday in New Zealand on Monday so we can hopefully get back to you on Tuesday New Zealand time (which is still late Monday for most of the world :-) I hope that helps, John-Daniel Trask |
|
|
Hello John-Daniel, thanks for the quick reply. Attached to this post is the sample solution (VS 2010) that I'm using. The file 'UsageAccountFixture.cs' contains the tests and the credentials stuff...
Thomas |
|
|
Hello Thomas, I've no idea why CreateAccounts would work with M/DB but CreateRepositories would have a signature error -- you would think that the signature stuff would be independent of the message content! In any case, another M/DB user has reported a similar issue with the M/DB Virtual Appliance so it seems this issue is somewhere between the AWS SDK (which Amazon obviously test only with their own stuff) and M/DB. Here is Rob's response: Almost certainly it's because the string to sign is differing between the client and node-mdb because of the different endpoint URL + port. Trust .Net! :-) Could you post here the trace from the node-mdb terminal window that shows the entire set of interactions it went through when processing an incoming request and I'll see if there's anything obvious If not then I'll get you to use an instance I have running on an EC2 server and I'll be able to see what's coming in for myself from your client. If you're able to provide Rob with any additional info or trace details then I'm sure he'd be pleased to hear from you. The M/DB support forum is at: http://groups.google.com/group/mdb-community-forum Needless to say, we'd be pleased to provide any additional info that would help you and the M/DB folks resolve this. |
|
|
Hello Thomas, Bit more info from Rob Tweed who is helping another M/DB user with a similar problem: "it appears that the AWS .Net client is sending http://groups.google.com/group/mdb-community-forum/msg/36803f2c9694dd92?hl=en-GB |
|
|
And one hopefully final update from Rob: "OK I see the problem - nothing to do with the time stamp. The AWS .Net http://groups.google.com/group/mdb-community-forum/msg/a019f465f7131cd0?hl=en-GB |
|