azure-functions
Run .exe executable file in Azure Function
Is it possible to create Azure Function for abcd.exe and run it in Azure Cloud Functions? Yes, we can upload .exe file and run it in Azure Function app. I create a TimerTrigger Function app, and run a .exe that insert record into database in this Function app, which works fine on my side. function.json … Read more
Azure Function gives error: System.Drawing is not supported on this platform
It’s not about the CLR, it’s about the sandbox. System.Drawing relies heavily on GDI/GDI+ to do its thing. Because of the somewhat risky nature of those APIs (large attack surface) they are restricted in the App Service sandbox. Win32k.sys (User32/GDI32) Restrictions For the sake of radical attack surface area reduction, the sandbox prevents almost all … Read more
Azure Function, EF Core, Can’t load ComponentModel.Annotations 4.2.0.0
I would suggest running this function below once you start your Azure Function. It will redirect any assembly to an existing version. public class FunctionsAssemblyResolver { public static void RedirectAssembly() { var list = AppDomain.CurrentDomain.GetAssemblies().OrderByDescending(a => a.FullName).Select(a => a.FullName).ToList(); AppDomain.CurrentDomain.AssemblyResolve += CurrentDomain_AssemblyResolve; } private static Assembly CurrentDomain_AssemblyResolve(object sender, ResolveEventArgs args) { var requestedAssembly = new … Read more
Pass Parameter with Volley POST
The server code is expecting a JSON object is returning string or rather Json string. JsonObjectRequest JSONRequest sends a JSON object in the request body and expects a JSON object in the response. Since the server returns a string it ends up throwing ParseError StringRequest StringRequest sends a request with body type x-www-form-urlencoded but since … Read more