amazon-archives / aws-sdk-xamarin

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

endpoints.xml is missing in iOS DLL #20

Closed rjcollingham closed 9 years ago

rjcollingham commented 9 years ago

Hi, I had to rebuild the iOS DLL from source as the endpoints.xml file is missing from the nuget package DLL which causes this error when calling AmazonSimpleNotificationServiceClient

{System.ArgumentNullException: Argument cannot be null.
Parameter name: stream
  at System.IO.StreamReader.Initialize (System.IO.Stream stream, System.Text.Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize) [0x00199] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.IO/StreamReader.cs:255 
  at System.IO.StreamReader..ctor (System.IO.Stream stream, System.Text.Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean leaveOpen) [0x0000e] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.IO/StreamReader.cs:166 
  at System.IO.StreamReader..ctor (System.IO.Stream stream, System.Text.Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize) [0x00000] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.IO/StreamReader.cs:152 
  at System.IO.StreamReader..ctor (System.IO.Stream stream) [0x00000] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.IO/StreamReader.cs:139 
  at Amazon.RegionEndpoint.LoadEndpointDefinitionsFromEmbeddedResource () [0x00000] in <filename unknown>:0 
  at Amazon.RegionEndpoint.LoadEndpointDefinitions () [0x00000] in <filename unknown>:0 
  at Amazon.RegionEndpoint.GetEndpointForService (System.String serviceName) [0x00000] in <filename unknown>:0 
  at Amazon.Runtime.ClientConfig.set_RegionEndpoint (Amazon.RegionEndpoint value) [0x00000] in <filename unknown>:0 
  at Amazon.SimpleNotificationService.AmazonSimpleNotificationServiceClient..ctor (System.String awsAccessKeyId, System.String awsSecretAccessKey, Amazon.RegionEndpoint region) [0x00000] in <filename unknown>:0 
tawalke commented 9 years ago

Thanks I will update the NuGet package appropriately.

Thanks,

TEW

Sent from Windows Mail

From: rjcollingham Sent: ‎Wednesday‎, ‎March‎ ‎18‎, ‎2015 ‎8‎:‎08‎ ‎AM To: 'awslabs/aws-sdk-xamarin'

Hi, I had to rebuild the iOS DLL from source as the endpoints.xml file is missing from the nuget package DLL which causes this error when calling AmazonSimpleNotificationServiceClient {System.ArgumentNullException: Argument cannot be null. Parameter name: stream at System.IO.StreamReader.Initialize (System.IO.Stream stream, System.Text.Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize) [0x00199] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.IO/StreamReader.cs:255 at System.IO.StreamReader..ctor (System.IO.Stream stream, System.Text.Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean leaveOpen) [0x0000e] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.IO/StreamReader.cs:166 at System.IO.StreamReader..ctor (System.IO.Stream stream, System.Text.Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize) [0x00000] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.IO/StreamReader.cs:152 at System.IO.StreamReader..ctor (System.IO.Stream stream) [0x00000] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.IO/StreamReader.cs:139 at Amazon.RegionEndpoint.LoadEndpointDefinitionsFromEmbeddedResource () [0x00000] in :0 at Amazon.RegionEndpoint.LoadEndpointDefinitions () [0x00000] in :0 at Amazon.RegionEndpoint.GetEndpointForService (System.String serviceName) [0x00000] in :0 at Amazon.Runtime.ClientConfig.set_RegionEndpoint (Amazon.RegionEndpoint value) [0x00000] in :0 at Amazon.SimpleNotificationService.AmazonSimpleNotificationServiceClient..ctor (System.String awsAccessKeyId, System.String awsSecretAccessKey, Amazon.RegionEndpoint region) [0x00000] in :0

— Reply to this email directly or view it on GitHub.

ufuf commented 9 years ago

Hi Nuget package is still 2.1.7 and we are still getting the error. Can you update the package? Best

tawalke commented 9 years ago

The 64 bit Package folder was not supported fully at the time, I will verify this has been corrected and update the package appropriately.

If you need it in the interim, download the 64 bit project for iOS and compile. Take the generated assembly from the bin/release folder and use this in your iOS 64bit project.

Let me know if this helps.

Thanks,

TEW

Sent from Windows Mail

From: Ufuk ARSLAN Sent: ‎Saturday‎, ‎April‎ ‎18‎, ‎2015 ‎6‎:‎27‎ ‎AM To: 'awslabs/aws-sdk-xamarin' Cc: Tara Walker

Hi Nuget package is still 2.1.7 and we are still getting the error. Can you update the package? Best

— Reply to this email directly or view it on GitHub.

ufuf commented 9 years ago

I am using it that way right now. But it would be better to have a nuget package though.

tawalke commented 9 years ago

Yes, this will be readdressed in v4.

Sent from Windows Mail

From: Ufuk ARSLAN Sent: ‎Sunday‎, ‎April‎ ‎19‎, ‎2015 ‎3‎:‎52‎ ‎PM To: 'awslabs/aws-sdk-xamarin' Cc: Tara Walker

I am using it that way right now. But it would be better to have a nuget package though.

— Reply to this email directly or view it on GitHub.

alexeystrakh commented 9 years ago

I'm getting the same error

If you need it in the interim, download the 64 bit project for iOS and compile

I need it. Where can I get 64 bit project for iOS? Or you mean iOS Unified?

friedhelmensch commented 9 years ago

he means Unified (the project is called "AWSSDK_iOS). I just tried it. downloading, recompiling and replacing the dll in your project works.

tawalke commented 9 years ago

New binary is in Compiled Binaries

tawalke commented 9 years ago

Closed Issue: Please ensure that if you have leveraged the NuGet Package for iOS which is mixing iOS Class with Unified currently; Please reference the compiled assemblies in the updated Compiled Binaries for OR compile the project for the desired platform to obtain the assembly.

A new NuGet package has been created and is being tested to ensure behavior has been resolved.

This issue is only relevant for iOS 64 bit (Unified).