<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Does Authorize.Net work with Xamarin.Android? in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Does-Authorize-Net-work-with-Xamarin-Android/m-p/57359#M32084</link>
    <description>&lt;P&gt;I am trying to run the sample code posted on the following github &lt;A href="https://github.com/AuthorizeNet/sample-code-csharp/blob/master/PaymentTransactions/ChargeCreditCard.cs" target="_self"&gt;link&lt;/A&gt;. I already signed up for the sandbox account and can confirm the posted code works when I run it through a console application.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, it will throw errors when I tried it on my Xamarin.Android project.&lt;/P&gt;&lt;P&gt;The first error it throws is:&lt;/P&gt;&lt;P&gt;Severity Code Description Project File Line Suppression State&lt;BR /&gt;Error Exception while loading assemblies: System.IO.FileNotFoundException: Could not load assembly 'System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Perhaps it doesn't exist in the Mono for Android profile?&lt;BR /&gt;File name: 'System.Web.dll'&lt;BR /&gt;at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve(AssemblyNameReference reference, ReaderParameters parameters)&lt;BR /&gt;at Xamarin.Android.Tasks.ResolveAssemblies.AddAssemblyReferences(ICollection`1 assemblies, AssemblyDefinition assembly, Boolean topLevel)&lt;BR /&gt;at Xamarin.Android.Tasks.ResolveAssemblies.Execute() AuthorizeNetTest&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This issue was fixed when I included the System.Web.dll reference to the project.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With that the application does run but it will soon encounter another error after trying to execute the following line of code:&lt;/P&gt;&lt;P&gt;controller.Execute();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It will give off the following error message:&lt;/P&gt;&lt;P&gt;System.TypeInitializationException: The type initializer for 'AuthorizeNet.Util.HttpUtility' threw an exception.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please provide assistance as to how to solve this issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS: The SDK was installed successfully in the nuget package manager using the following command -&amp;nbsp;Install-Package AuthorizeNet&lt;/P&gt;</description>
    <pubDate>Wed, 22 Mar 2017 17:43:03 GMT</pubDate>
    <dc:creator>jsmith99</dc:creator>
    <dc:date>2017-03-22T17:43:03Z</dc:date>
    <item>
      <title>Does Authorize.Net work with Xamarin.Android?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Does-Authorize-Net-work-with-Xamarin-Android/m-p/57359#M32084</link>
      <description>&lt;P&gt;I am trying to run the sample code posted on the following github &lt;A href="https://github.com/AuthorizeNet/sample-code-csharp/blob/master/PaymentTransactions/ChargeCreditCard.cs" target="_self"&gt;link&lt;/A&gt;. I already signed up for the sandbox account and can confirm the posted code works when I run it through a console application.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, it will throw errors when I tried it on my Xamarin.Android project.&lt;/P&gt;&lt;P&gt;The first error it throws is:&lt;/P&gt;&lt;P&gt;Severity Code Description Project File Line Suppression State&lt;BR /&gt;Error Exception while loading assemblies: System.IO.FileNotFoundException: Could not load assembly 'System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Perhaps it doesn't exist in the Mono for Android profile?&lt;BR /&gt;File name: 'System.Web.dll'&lt;BR /&gt;at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve(AssemblyNameReference reference, ReaderParameters parameters)&lt;BR /&gt;at Xamarin.Android.Tasks.ResolveAssemblies.AddAssemblyReferences(ICollection`1 assemblies, AssemblyDefinition assembly, Boolean topLevel)&lt;BR /&gt;at Xamarin.Android.Tasks.ResolveAssemblies.Execute() AuthorizeNetTest&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This issue was fixed when I included the System.Web.dll reference to the project.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With that the application does run but it will soon encounter another error after trying to execute the following line of code:&lt;/P&gt;&lt;P&gt;controller.Execute();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It will give off the following error message:&lt;/P&gt;&lt;P&gt;System.TypeInitializationException: The type initializer for 'AuthorizeNet.Util.HttpUtility' threw an exception.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please provide assistance as to how to solve this issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS: The SDK was installed successfully in the nuget package manager using the following command -&amp;nbsp;Install-Package AuthorizeNet&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2017 17:43:03 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Does-Authorize-Net-work-with-Xamarin-Android/m-p/57359#M32084</guid>
      <dc:creator>jsmith99</dc:creator>
      <dc:date>2017-03-22T17:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: Does Authorize.Net work with Xamarin.Android?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Does-Authorize-Net-work-with-Xamarin-Android/m-p/57454#M32172</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/21432"&gt;@jsmith99&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Xamarin.Android isn't currently one of our target platforms. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;You are welcome to post this as a new feature using our &lt;A href="http://community.developer.authorize.net/t5/Ideas/idb-p/ideas" target="_blank"&gt;Ideas forum&lt;/A&gt;. This will allow others to vote on and make suggestions to improve the request.&lt;BR /&gt;&lt;BR /&gt;Richard&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2017 21:26:03 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Does-Authorize-Net-work-with-Xamarin-Android/m-p/57454#M32172</guid>
      <dc:creator>RichardH</dc:creator>
      <dc:date>2017-03-28T21:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: Does Authorize.Net work with Xamarin.Android?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Does-Authorize-Net-work-with-Xamarin-Android/m-p/60320#M34867</link>
      <description>&lt;P&gt;Can you advise if AuthorizeNet package works for Xamarin iOS? &amp;nbsp; And have plans changed at all now fo r Android&amp;nbsp;support ?&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2017 11:24:33 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Does-Authorize-Net-work-with-Xamarin-Android/m-p/60320#M34867</guid>
      <dc:creator>baxtercr</dc:creator>
      <dc:date>2017-11-01T11:24:33Z</dc:date>
    </item>
  </channel>
</rss>

