amazon-archives / aws-sdk-xamarin

AWS Mobile SDK for Xamarin (Beta)
Apache License 2.0
45 stars 18 forks source link

ERROR: Android SDK - RegionEndpoint.cs - assembly.GetManifestResourceStream(REGIONS_FILE) #14

Closed testdroid11571157 closed 9 years ago

testdroid11571157 commented 9 years ago

Android SDK: Attempting to set a RegionEndPoint:

AmazonS3Config config.RegionEndpoint = Amazon.RegionEndpoint.USEast1;

This line is throwing an error when setting a RegionEndPoint on a config (Argument cannot be null).

 static void LoadEndpointDefinitionsFromEmbeddedResource()
        {
            Assembly assembly = Amazon.Util.TypeFactory.GetTypeInfo(typeof(RegionEndpoint)).Assembly;
            using (StreamReader reader = new StreamReader(assembly.GetManifestResourceStream(REGIONS_FILE)))
            {
                LoadEndpointDefinitions(reader);
            }
        }
const string REGIONS_FILE = "AWSSDK.endpoints.xml";

It references a REGIONS_FILE const. The path in the SDK is root/endpoints.xml ..

tawalke commented 9 years ago

Thanks for the feedback, let me take a look now.

tawalke commented 9 years ago

Can you send me the entire code that calls this. I will continue to run the test I have started.

testdroid11571157 commented 9 years ago

All u need to do is create a config as shown in the sample code and set the end point in a new project with a reference to the android aws sdk project. It fails. Do you want a sample project?

On Dec 16, 2014 8:11 PM, "tawalke" notifications@github.com wrote:

Can you send me the entire code that calls this. I will continue to run the test I have started.

— Reply to this email directly or view it on GitHub https://github.com/awslabs/aws-sdk-xamarin/issues/14#issuecomment-67262486 .

testdroid11571157 commented 9 years ago

After a new project in mainActivity on create:

AmazonS3Config config = new AmazonS3Config();
config.RegionEndpoint = Amazon.RegionEndpoint.USEast1;
tawalke commented 9 years ago

I think I found the error you are having, very simple fix that was intermittent with platforms. I will update this now and you can retest.

tawalke commented 9 years ago

Update/Commit completed. Please retry your code and advise.

testdroid11571157 commented 9 years ago

This issue above in regards to the endpoint error has been resolved. Thanks!