问题描述
最近我遇到了以下问题.在Visual Studio中运行的Azure函数始终会引发异常:
lately I have encountered a following problem. Azure Function that is run in Visual Studio always throws an exception:
理应将丢失的文件放在其位置.我尝试重新安装Azure Function Tools和Visual Studio,但没有任何帮助.有什么想法吗?
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?
谢谢.
该问题似乎是由库路径中的非英文字符引起的.我刚刚创建了一个没有他们的帐户,然后突然一切开始工作.
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.
推荐答案
从错误的根本原因是由于库路径中的非英语字符,您可以考虑重命名用户的路径轮廓.
from the point that the root cause of error is because of the non-english characters in the path to the library, you can consider to rename path of your user profile.
要这样做,请按以下步骤操作
To do so, here is the steps
- 注销并用另一个管理员用户登录到您的PC
- 通过 + 打开命令提示符,然后键入
cmd
- 键入
wmic用户帐户获取名称,sid
并获取个人资料的SID
- 在开始菜单下键入
regedit
,右键单击它,然后选择以管理员身份运行
- 进入
Computer \ HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows NT \ CurrentVersion \ ProfileList \ YOUR_SID_HERE
- 双击
ProfileImagePath
并根据需要更改值数据(您可以关闭注册表编辑器) - 转到USER PROFILES文件夹(
%USERPROFILE%\ .. \
)下,并相应地更改用户配置文件的路径 - 重新启动计算机
- Log out and login with another Administrator user to your PC
- open command prompt by + then type
cmd
- type
wmic useraccount get name, sid
and getSID
of your profile - type
regedit
under start menu, right click on it and selectRun as Administrator
- Go under
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\YOUR_SID_HERE
- Double Click on
ProfileImagePath
and change the value data according to your need (you can close Registry Editor) - go under USER PROFILES folder (
%USERPROFILE%\..\
) and change the path of your user profile accordingly - Restart your computer
这篇关于在Visual Studio中运行Azure函数时无法加载本机库grpc_csharp_ext.x86.dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!