Azure functions: Unable to load DLL 'sni.dll' or one of its dependencies: The specified module could not be found. (0x8007007E)

前端 未结 1 1240
长发绾君心
长发绾君心 2021-01-26 04:55

Trying to run this Azure Function in Azure portal but fails with above title error:

    using System;
    using System.IO;
    using System.Net;
    using System         


        
相关标签:
1条回答
  • 2021-01-26 05:11

    It looks like something is wrong with the connection string. Please check that you are you using something similar to this:

    Server=tcp:{your_server}.database.windows.net,1433;Initial Catalog={your_database};Persist Security Info=False;User ID={your_user};Password={your_password};MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;
    

    For what concern using Microsoft.Data.SqlClient, which is the recommended library, you need to add it to the solution first:

    dotnet add package Microsoft.Net.SqlClient
    
    0 讨论(0)
提交回复
热议问题