AWS-Lambda .NET Core – How to reference System.Data.SqlClient

I needed to access an RDS database (relational data store) from a C# Lambda function.? It took me a while to figure how how to reference it. Build Error: C# Core:System.Data.SqlClient “Data” does not exist in namespace System Solution: Run the following under the Nuget Package console. Install-Package System.Data.SqlClient -Version 4.1.0 Note, it might not […]

AWS-Lambda – C# – JsonReaderException – Unexpected character encountered while parsing value (line 1, position 1)

This blog explains in more detail why you are probably getting the error and provides two solutions, depending on whether you want to pass just a string or JSON. Error: </pre> { "errorType": "JsonReaderException", "errorMessage": "Unexpected character encountered while parsing value: {. Path '', line 1, position 1.", "stackTrace": [ "at Newtonsoft.Json.JsonTextReader.ReadStringValue(ReadType readType)", "at Newtonsoft.Json.JsonTextReader.ReadAsString()", […]