title: Unable to load type from assembly (C# Amazon lambda function)
body: <p>Since Amazon now supports C# to build AWS Lambda functions, i wanted to give it a try, but i get stuck when performing a test.</p>
  
  <p>This is my simple class:</p>
  
  <pre><code>using System;
  using System.IO;
  using System.Text;
  
  using Amazon.Lambda.Core;
  //using Amazon.Lambda.Serialization.Json;
  
  namespace MyTest
  {
      public static class LambdaFunction
      {
          public static string Handler(Stream stream)
          {
              return "Hello World";
          }
      }
  }
  </code></pre>
  
  <p>I compiled it using the .Net Core runtime. The result is a folder netstandard1.4 with the assembly MyTest.dll file and a MyTest.deps.json file. These compressed as .zip are uploaded to the AWS Lambda console. </p>
  
  <p>In the configuration tab the Handler is defined as:</p>
  
  <pre><code>MyTest::LambdaFunction::Handler
  </code></pre>
  
  <p>But when i hit the TEST button, this is the error message returned:</p>
  
  <pre><code>{
    "errorType": "LambdaException",
    "errorMessage": "Unable to load type 'LambdaFunction' from assembly 'MyTest, Culture=neutral, PublicKeyToken=null'."
  }
  </code></pre>
  
  <p>Note1 : before i knew i needed to use .Net Core instead of the full CLR, i got an error that the assembly could not be loaded, so i figured the assembly is compiled ok now.</p>
  
  <p>Note2 : I've tried several argument-types (Stream and String are the only supported ones without custom serializer though) for the Handler method, as well as static/instance class or method or any combination, all to no avail.</p>
  
  <p>Anyone who got this working already and can give me a few pointers?</p>