I wrote this article about running Visual Studio Code on Linux here and wanted to now create a more complicated console app. To do this I wanted to install the Newtonsoft.Json NuGet Package. To open the console where the commands are added select View –> Integrated Terminal from the menu bar. I started with creating […]
Read More →Archive for May, 2017
Create a .NET Core 2 application on Linux with Visual Studio Code
The plan is to work some with Linux and I have chosen Ubuntu 16.04 LTS because this, AFAIK, is the flavor which Azure App Service Linux containers runs, see more about that here. I built my Ubuntu work station, by downloading the ISO from the Ubuntu site here and burning it to a DVD. Yes, […]
Read More →Add a new user to my Azure Subscription
I wanted to add a new user to my subscription and I wanted to make that person an Owner. This is how I did it. Create the account Grant the account access to the subscription Create the account I logged into the Azure management portal and navigated to Azure Active Directory and clicked ‘Add a […]
Read More →What do C# values look like in WinDbg
One of the important areas you need to master when analyzing memory dumps is to recognize patterns that are normal and not normal. You can only come to those conclusions after looking at many, many, many, many memory dumps and either remembering or taking notes on how a process looks when all is ok, so […]
Read More →How to see the cipher suites on an Azure App Service
I wrote an article here about TLS 1.2 which listed out the cipher suite used to negotiate security settings (encryption) between a client and server via a Network Monitor trace. You can probably see the same using Wireshark. Regardless, here is a nice Wiki article about cipher suites. It was a journey getting to the […]
Read More →Create an Azure App Service Web App using PowerShell
There are numerous place to find this same example, but while I am ramping up my Azure PowerShell #Azure #AzurePowerShell #PowerShell skills, I though I’d go ahead and document it up so I have all this information in a single place for future reference. While I am at it, I might as well share it […]
Read More →Capture NHibernate generated SQL Query real-time / at runtime
There are 6 things you need to do before you can capture the SQL Query generated by NHibernate at runtime. Create a class to store the NHibernate generated SQL Query Create an Interceptor class that implements the IInterceptor interface Implement the OnPrepareStatement method and set the NHibernate generated SQL Query created in step 1 Set […]
Read More →Hashing with Cryptography and SHA in C#
Disclaimer: Security is a very important aspect, not only for a computer system, but for an entire organization and/or company. Different types of organizations store different types of data which have different types of security requirements. My suggestion is to always consult a security expert with experience in your domain prior to implementing a security […]
Read More →Could not load file or assembly ‘benjamin, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null’ or one of its dependencies. The system cannot find the file specified.","errorDetails" SOLVED
I was writting this article about #AzureFunctions here called “How to add assembly references to an Azure Function App” and another here called “How to make a simple DLL as an assembly reference just for fun” and I got this exceptions when I called the Azure Function: D:\>curl.exe -G http://localhost:7071/api/GrettingsAssemblyReference?code=b442be73f7124dd8ae57747e7ffc496d -d name=Benjamin {“id”:”3abc8583-47c0-43e3-90f0-d2f7fe577d43″,”requestId”:”b74ef638-0f71-4303-adca-2c7741e1dcb7″,”statusCode”:500,”errorCode”:0,”messsage”:”Exception while executing […]
Read More →Azure Functions Access-Control-Allow-Credentials with CORS
There is a known issue documented on GitHub here with a title of Cross origin http request CORS fails with response header missing ‘Access-Control-Allow-Credentials: true’. Although the issue described and a solution provided, I thought I would write up what I did as I use C# and didn’t see any examples of that, so here […]
Read More →