SQL Server connection on Azure sni.dll missing

0

I have created a console application using Visual studio .net framework 2017 to connect to a SQL Server and it works fine. I have then created an Azure function directly on Azure portal (I did not create on .NET and deployed to Azure). After creating the Azure function on the portal, I copied the code from my Console application on run.csx:

enter image description here

When I run the application, I get the below error:

2020-04-06T05:48:46.451 [Error] Executed 'Functions.HttpTrigger1' (Failed, Id=872d7c10-9e70-4e8f- 
89ae-aa2f181d8b90)
Unable to load DLL 'sni.dll' or one of its dependencies: The specified module could not be found. 
(0x8007007E)

I have tried to add the System.Data.SqlClient.dll in the drive D:/location of project, but it still gives the error?

Does anyone know why I am getting this error and what can be done to resolve?

sql-server
azure
asked on Stack Overflow Apr 6, 2020 by avdeveloper • edited Apr 6, 2020 by Dale K

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0