I am writing a .Net Standard 2.0 library that will be used by a binary PowerShell module. The library will be basically an API client with a lot of classes for dealing with the JSON responses. Prior to trying to deserialise the strings, I confirmed that the API was providing [...] read more
I created a out of the box Azure Function App with an Azure Http Trigger. Which gave me the below code. All I have updated is I am converting the HttpRequest body into my Helper class. Here is the code public static class TriggerTest { [FunctionName("TriggerTest")] public static IActionResult Run([HttpTrigger(AuthorizationLevel.Function, [...] read more
This is driving me crazy. I am getting a load error with Azure functions with Newtonsoft.Json. This is a .netstandard2.0 project and I have version 11.0.2 installed. I have looked on the web and most others that have had this are using an old version of the Microsoft.NET.Sdk.Functions : 1.0.13 [...] read more
I already opened an issue in Azure/azure-functions-host and I have a repo with the repro steps, but I'm posting this here in case there is something inherently wrong with what I'm doing, or someone has already stumbled open this issue. My goal: I want to run in an azure function [...] read more
Is it possible to call Windows.Forms as F# script? As I am aware, there is an issue when trying to refer them a .nuget package, as described here, with potential solution (referencing the files directly on the target machine), described here. I did not try to see if suggested solution [...] read more
I've created a new Azure Function in VS 2017. Ran it, debugged it. Then referenced a library of shared code and modified the code to call into the library. Re-ran the function, upon calling the function it dies loading one of the dependent DLLs. This seems to be publishing as [...] read more
I am currently updating my Azure Function from 2.2 to 3.1, I have updated all the packages and csproj <PropertyGroup> <TargetFramework>netcoreapp3.1</TargetFramework> <AzureFunctionsVersion>v3</AzureFunctionsVersion> </PropertyGroup> <ItemGroup> <PackageReference Include="FluentValidation" Version="8.6.0" /> <PackageReference Include="GeoJSON" Version="2.1.0" /> <PackageReference Include="GeoTimeZone" Version="4.0.0" /> <PackageReference Include="Microsoft.Azure.EventHubs.Processor" Version="4.1.0" /> <PackageReference Include="Microsoft.Azure.WebJobs" Version="3.0.14" /> <PackageReference Include="Microsoft.Azure.WebJobs.Extensions.CosmosDB" Version="3.0.5" /> <PackageReference Include="Microsoft.NET.Sdk.Functions" [...] read more
I'm trying to implement azure functions v2 with connections to a blob storage and an SQL Database. There are a lot of packages that are not supported anymore; and I found out that Microsoft.WindowsAzure.Configuration is not supported anymore and that I need to use ASP.NET Core Configuration. I tried implementing [...] read more
I'm trying to move some functionality to Azure Functions. Created a project for EF Core 2 code, and referenced it to the Azure Functions project. Added the EF Core+SQLServer nugget packages to the Azure Functions project. When the function attempts to execute, this is the errors in the screen. I [...] read more
I am trying to follow the following blog post about how to set up a simple f# azure function. I am using Azure Functions version 2. Everything builds and can be published, but I am running into an issue when running the code: [29/03/2018 10:27:00] Executing 'Functions.lofunc' (Reason='Timer fired at [...] read more
I'm attempting to write a simple Azure Function app and I want to reference some other existing projects in my VS 2017 solution. These other projects have a reference to some custom logging code which in turn references the Nuget packages Microsoft.Extensions.Logging, Microsoft.Extensions.Logging.Console and Microsoft.Extensions.Logging.Debug. When I start my functions [...] read more
I updated all my nuget packages to the latest versions. Everything works great locally whether in debug or release, but as soon as i published to azure, i get this on the website main page: [FileLoadException: Could not load file or assembly 'DocumentDB.Spatial.Sql' or one of its dependencies. Could not [...] read more
I wrote the following C# script (HelloWorld.csx file): #! "netcoreapp3.1" #r "nuget: System.Text.Encoding.CodePages, 5.0.0" public class Script { public static void Run() { try { System.Text.Encoding.RegisterProvider(System.Text.CodePagesEncodingProvider.Instance); } catch (Exception ex) { System.Console.WriteLine(ex.ToString()); } } } Script.Run(); I'm using dotnet-script (version 1.0.1) and .NET Runtime (version 3.1.14) When executing this script, [...] read more
On Startup.cs in my Azure Function v2 project: using Microsoft.Azure.Functions.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection; using MyCompany.MyLib.Contracts; //namespace from external library [assembly: FunctionsStartup(typeof(Startup))] namespace Test { public class Startup : FunctionsStartup { public override void Configure(IFunctionsHostBuilder builder) { builder.Services.AddTransient(typeof(Logging.ILogger<>), typeof(Logging.Logger<>)); builder.Services.AddTransient<IUserLogic, UserLogic>(); builder.Services.AddTransient<IBillingLogic, BillingLogic>(); //---> loads up from above referenced "MyCompany.MyLib.Contracts" namespace and [...] read more
using Microsoft.Azure.WebJobs; using Microsoft.Azure.WebJobs.Host; using Microsoft.Extensions.Logging; //Nuget package using MyComp.MyLib.Contracts.Configuration; // Custom namespace after adding reference of my custom custom class library namespace FunctionApp1123 { public static class Function1 { [FunctionName("Function1")] public static void Run([QueueTrigger("myQNamec", Connection = "connstring")]string myQueueItem, ILogger log) { var appConfig = new ApplicationConfig(); // custom class [...] read more
I am trying to build the runtime store for my application, optimized for target runtime. However it fails to resolve the System.Runtime, 4.2.2.0 dependency. My manifest file's contents is as follows: <Project Sdk="Microsoft.NET.Sdk"> <ItemGroup> <PackageReference Include="AutoMapper" Version="9.0.0" /> </ItemGroup> </Project> The command is as follows: dotnet store --manifest ./store_broken.manifest --output [...] read more
Are there any restrictions with packages you can use with Azure Functions. I have researched as much as I can and it doesn't seem so, however when I try creating an Azure Function that references the package "Microsoft.ServiceFabric" I get the following error: > System.Private.CoreLib: Exception while executing function: > [...] read more
The following experimental codes/projects are using netcore 2.0 and netstandard 2.0 in VS2017. Let's say I have two versions of a third party dll v1.0.0.0 and v2.0.0.0, which contains only one class Constants.cs. //ThirdPartyDependency.dll v1.0.0.0 public class Constants { public static readonly string TestValue = "test value v1.0.0.0"; } //ThirdPartyDependency.dll [...] read more
I'm developing an Azure Functions "app" and I'm doing most of the testing locally then publishing the DLLs to Azure. I started out in March and it's been working pretty well up until a couple of weeks ago. I'm mainly developing and testing using macOS High Sierra (currently the latest [...] read more
I am trying to write an azure timer function that writes files to Azure Datalake, but when I am adding the needed nuGet packages I am getting an error when I start the host The error is as follows [21/5/2018 8:36:20 AM] Executed 'NWPimFeederFromAws' (Failed, Id=03395101-41a5-44ef-96d8-f69c5d73eca7) [21/5/2018 8:36:20 AM] System.Private.CoreLib: [...] read more
The following is my full error: Error in Microsoft.SqlServer.Dts.Runtime.TaskHost The Execute method on the task returned error code 0x80131621 (Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information. The Execute method must succeed, and indicate the [...] read more
[15/03/2018 11:03:14 PM] Could not load file or assembly 'Microsoft.WindowsAzure.Storage, Version=8.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. Could not find or load a specific file. (Exception from HRESULT: 0x80131621) [15/03/2018 11:03:14 PM] at Tux.Workers.RollCall.Azure.AzureTable.<Init>d__1.MoveNext() [15/03/2018 11:03:14 PM] at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine) [15/03/2018 11:03:14 PM] at Tux.Workers.RollCall.Azure.AzureTable.Init(String tableName) [15/03/2018 11:03:14 PM] at Tux.Workers.RollCall.Function1.<Run>d__0.MoveNext() [15/03/2018 11:03:14 PM] [...] read more
I am trying to execute a simple SSIS package from vb6 application. I can execute the same package from c#. This is my code in vb6: pkgLocation = "c:\Package.dtsx" Set dtsApp = New Application Set package = dtsApp.LoadPackage(pkgLocation, True, Nothing) Set pkgContainer = package pkgResults = package.Execute If (pkgResults = [...] read more
I created a F# console application with DB migrations. When I run the command: dotnet fm migrate -c "Server=(localdb)\MsSQLLocalDB;Database=Foo;Trusted_Connection=True" -a .\DbMigrations.dll -p SqlServer I get the error: > Unhandled Exception: System.IO.FileLoadException: Could not load file or > assembly 'FSharp.Core, Version=4.7.0.0, Culture=neutral, > PublicKeyToken=b03f5f7f11d50a3a'. Could not find or load a specific [...] read more
I have custom publish process which firstly merges some assemblies into one via ILRepack, then performs some other steps and finally cleans up publish directory - removes merged dependencies from APP_NAME.deps.json, relevant assemblies and symbol files. In order to implement the last step, I've created a NuGet package with a [...] read more
Trying to create an HttpTrigger v2 Azure Function with CosmosDB bidning that will look up ID from route data using SqlQuery. This is very similar to example provided by Microsoft here. I am developing this function using VS Code. Here is the code: using Microsoft.AspNetCore.Mvc; using Microsoft.Azure.WebJobs; using Microsoft.Azure.WebJobs.Extensions.Http; using [...] read more
It was suggested to me to ask this here, I have no issue on running dotnet restore and dotnet run on a just created project folder but VSCode Q# extension fails to work like this and it doesn't give any good pointer what has went wrong. [Error - 10:35:54 PM] [...] read more
I am developing a http trigger using azure functions 2.x and dotnet core, after the latest update to VS 2017 15.8.2 I am getting the following error when running the function locally 1/9/2018 13:30:50] Stopping Host [1/9/2018 13:31:06] Reading host configuration file 'C:\Users\MattDouhan\source\repos\NWMposTransInput\NWMposTransInput\bin\Debug\netstandard2.0\host.json' [1/9/2018 13:31:06] Host configuration file read: [1/9/2018 [...] read more
When I installing Azure.KeyVault package version 3 alpha, I'm getting the following runtime exception: Could not load file or assembly 'Microsoft.Azure.KeyVault, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. Could not find or load a specific file. (Exception from HRESULT: 0x80131621) Downgrading this package to latest stable 2.3.2 causes another error: enter image description here [...] read more
I'm new in Azure Functions and I'm creating a FirestoreDb connection. But when I call the FirestoreDb.Create method, I take this exception: > Exception while executing function: OutputFirebase. > Output.Firebase.Services.Functions: Could not load file or assembly > 'Google.Protobuf, Version=3.5.1.0, Culture=neutral, > PublicKeyToken=a7d26565bac4d604'. Could not find or load a specific file. [...] read more
I am trying to run my SSIS packages on MSDB with a console application, but I keep getting an error. Application app = new Application(); Package package = app.LoadFromSqlServer("\\File\\Path\\" + paramName, ".", "MSDBUser", "password", null); DTSExecResult result = package.Execute(); Console.WriteLine("Package Execution Results: {0}", result.ToString()); I keep getting the error: "The [...] read more
I'm trying to implement a SAML IdentityProvider plugin for Sitecore Identity Server. My project settings are: Project settings [https://i.stack.imgur.com/0vEkC.png] I have referenced the following packages in my solution: Package references [https://i.stack.imgur.com/C7D8I.png] I have configured the Sustainsys.Saml2.IdentityProvider to work with our Idp and hooked it up using: new Microsoft.AspNetCore.Authentication.AuthenticationBuilder(services).AddSaml2(...) When I [...] read more
I recently worked on a c# class library project where I had some issues with a NuGet package. I installed the System.Configuration.ConfigurationManager package to my project, version 5.0.0. My class library is targeting .Net Standard 2.0. Everything works as expected on my local machine and compiles fine, but after publishing [...] read more
I'm trying to connect to IBM databases for redis instance from ibmcloud functions for days but i had no luck. I tried using ibmcloud supported version .netcore 2.2 and docker image core 3.1. I can connect to redis without anyerrors from a local console app using code below. I need [...] read more
When trying to execute a PowerShell command to create a new Service principal for a Multitenant App from Tenant A to Tenant B, where the Tenant B Admin is trying to give consent and register the app from Tenant A using this command: New-AzureADServicePrincipal -AppId "APP ID GUID" I am [...] read more
I'm using nuget package IBM.Data.DB2.Core version 1.3.0.100 dll to connect DB2 database from Azure functions with AzureFunctionsVersion V2. Application builds successfully. When I run the application and hit it with Postman I get the exception: > System.Private.CoreLib: Exception while executing function: > Personal-GetAgencyDownload. AgencyDownload: Could not load file or assembly [...] read more
Azure function error [https://i.stack.imgur.com/9VSSG.png] Have installed nuget for System.Data.SqlClient 4.8.1. Getting below error on running [5/28/2020 4:09:39 PM] Executed 'Function1' (Failed, Id=990d4cbf-bd32-4a77-ab52-8b5fb1dce252) [5/28/2020 4:09:39 PM] System.Private.CoreLib: Exception while executing function: Function1. FunctionAppDemo: Could not load file or assembly 'System.Data.SqlClient, Version=4.6.1.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Could not find or load a specific file. [...] read more
I try to use Logitech mouse to send string like logitech provide a software to do enter image description here [https://i.stack.imgur.com/b32vV.png] I click Forward button it will send string but I can't use winform to send string to it to modify it I find logitech has G-series Lua API I [...] read more
Everytime I try to debug unit tests from Rider IDE, test execution fails with an exception > System.IO.FileLoadException: Could not load file or assembly 'testhost, > Culture=neutral, PublicKeyToken=null'. Could not find or load a specific file. > (Exception from HRESULT: 0x80131621) File name: 'testhost, Culture=neutral, > PublicKeyToken=null' StackTrace: at System.Reflection.RuntimeAssembly.nLoad(AssemblyName [...] read more
I created a c# Library class (called IfcManagerLib) in Visual Studio and installed some packages (only on the library) via the NuGet Packages Manager. Now I want to use this library through a Console App (called IfcManagerConsole), so I created one in the same solution, added a reference to IfcManagerLib [...] read more
I'm trying to create an azure function that needs to access a database. I have a .netstandard 2.0 library that contains all the database stuff (it has Microsoft.EntityFrameworkCore.Tools and Microsoft.EntityFrameworkCore.SqlServer Nuget packages and created all the related classes with Scaffold-DbContext). My azure function (queue triggered) has a reference to that [...] read more
I have a simple timer based azure function that crashes with the following message I have added the nuget package for newtonsoft.Json so I am not sure why this is a problem. [1/11/2018 07:00:26] Executed 'PimDataFeeder' (Failed, Id=291e9147-7f57-4fd3-887d-a8001afc8230) [1/11/2018 07:00:26] System.Private.CoreLib: Exception while executing function: PimDataFeeder. System.Private.CoreLib: Could not load [...] read more
I am testing how to write a simple azure function that updates an azure sql database. From VS2017 I made a new Cloud->Azure function v2 with netstandars 2.0. My code is the following: [FunctionName("Activate")] public static IActionResult Run([HttpTrigger(AuthorizationLevel.Anonymous, "get", "post", Route = null)]HttpRequest req, TraceWriter log) { log.Info("C# HTTP trigger [...] read more
Using the latest version of VS 2017 I * Create a new azure functions project. * Add a timer trigger function * Upgrade to latest (1.0.8) azure functions nuget package * Add a reference to azure storage for creating table client * run the project, and it just failes on [...] read more
I've created an Azure Function that is triggered by a timer, which connects to a storage queue and grabs the next few messages, it runs every minute: using System; using Microsoft.Azure.WebJobs; using Microsoft.Azure.WebJobs.Host; using Microsoft.WindowsAzure.Storage; using Newtonsoft.Json; using VS.Core.JobRunner; namespace VS.JobRunner { public static class JobRunner { [FunctionName("JobRunner")] public static [...] read more
I am using Visual Studio 2017 v-15.6.0 & AzureFunctions Project is Standard2.0 & webjobs 3.0.0-beta-3. i am trying to build deb context using entity framework core. I am getting bellow error Could not load file or assembly 'Microsoft.EntityFrameworkCore, Version=2.0.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. Could not find or load a specific file. (Exception [...] read more
I'm certain these tests were running fine before I upgraded .NET Core, but I can't figure out how they are broken or why. I have three libraries that I have developed. We'll call them A, B, and C. B depends on A directly, and C depends on B and A [...] read more
I receive the exception, if i do the following steps: Test 1: MainApp-Project: 1. Added Nuget Package Autofac Version 4.5.0 2. Added Nuget Package Autofac.WCF Version 4.0 Module-Project: 1. Added Nuget Package Autofac.WCF Version 4.0 (Autofac 3.3.1 will be installed automatically) 2. Updated via Nuget Manager Autofac to 4.5.0 During [...] read more
I have 3 resource groups in Azure, with each 2 Azure Web apps (one of them in NorthEurope, the other in WestEurope) that sit behind a traffic manager. All of this is deployed through Azure ARM templates (the same templates for all Web Apps): Visually: DEV (Resource group) Traffic Manager [...] read more