title: Failed to load native library grpc_csharp_ext.x86.dll while running Azure Function in Visual Studio
body: <p>lately I have encountered a following problem. Azure Function that is run in Visual Studio always throws an exception:</p>
  
  <blockquote>
    <p>System.IO.IOException   HResult=0x80131620   Message=Error loading
    native library
    "C:\Users\\AppData\Local\AzureFunctionsTools\Releases\2.16.0\cli\grpc_csharp_ext.x86.dll"
    Source=Grpc.Core   StackTrace:    at
    Grpc.Core.Internal.UnmanagedLibrary..ctor(String[]
    libraryPathAlternatives)    at
    Grpc.Core.Internal.NativeExtension.LoadUnmanagedLibrary()    at
    Grpc.Core.Internal.NativeExtension.LoadNativeMethods()    at
    Grpc.Core.Internal.NativeExtension..ctor()    at
    Grpc.Core.Internal.NativeExtension.Get()    at
    Grpc.Core.GrpcEnvironment.GrpcNativeInit()    at
    Grpc.Core.GrpcEnvironment..ctor()    at
    Grpc.Core.GrpcEnvironment.AddRef()    at
    Grpc.Core.Server..ctor(IEnumerable`1 options)    at
    Microsoft.Azure.WebJobs.Script.Grpc.GrpcServer..ctor(FunctionRpcBase
    serviceImpl) in
    C:\azure-webjobs-sdk-script\src\WebJobs.Script.Grpc\Server\GrpcServer.cs:line
    24</p>
  </blockquote>
  
  <p>The file that is supposedly missing is at its place of course. I've tried to reinstall Azure Function Tools and Visual Studio and nothing helped. Any ideas?</p>
  
  <p>Thanks in advance.</p>
  
  <p>EDIT1:</p>
  
  <p>The problem seems to be caused by non-english characters in the path to the library. I've just created another account without them and suddenly everything started to work.</p>