gpt4 book ai didi

Azure Functions,nuget 包安装失败

转载 作者:行者123 更新时间:2023-12-05 07:45:36 25 4
gpt4 key购买 nike

我尝试在project.json中安装Azure Function的NuGet包,如下所示:

{
"frameworks": {
"net46":{
"dependencies": {
"PDFNet": "6.7.1",
"PDFNetNoLoader": "6.5.4"
}
}
}
}

但是,对于我尝试安装的每个软件包,我都会收到此错误消息“访问路径 '________' 被拒绝”。每次恢复包时路径_______都不同。

2017-01-06T15:38:53.804 Restoring packages for D:\home\site\wwwroot\PDFT\project.json...
2017-01-06T15:38:54.153 CACHE https://api.nuget.org/v3-flatcontainer/pdfnet/index.json
2017-01-06T15:38:54.184 CACHE https://api.nuget.org/v3-flatcontainer/pdfnet/6.7.1.52203/pdfnet.6.7.1.52203.nupkg
2017-01-06T15:38:54.262 CACHE https://api.nuget.org/v3-flatcontainer/pdfnetnoloader/index.json
2017-01-06T15:38:54.262 CACHE https://api.nuget.org/v3-flatcontainer/pdfnetnoloader/6.5.4/pdfnetnoloader.6.5.4.nupkg
2017-01-06T15:38:54.387 Installing PDFNetNoLoader 6.5.4.
2017-01-06T15:38:54.496 Access to the path 'ofvjs2t3.tlt' is denied.
2017-01-06T15:38:54.496
2017-01-06T15:38:54.496
2017-01-06T15:38:53.032 Restoring packages for D:\home\site\wwwroot\PDFT\project.json...
2017-01-06T15:38:54.261 CACHE https://api.nuget.org/v3-flatcontainer/pdfnet/index.json
2017-01-06T15:38:54.291 CACHE https://api.nuget.org/v3-flatcontainer/pdfnet/6.7.1.52203/pdfnet.6.7.1.52203.nupkg
2017-01-06T15:38:56.391 Access to the path 'ofvjs2t3.tlt' is denied.
2017-01-06T15:38:56.406
2017-01-06T15:38:56.406
2017-01-06T15:38:56.736 Access to the path 'ofvjs2t3.tlt' is denied.
2017-01-06T15:38:56.812
2017-01-06T15:38:56.812
2017-01-06T15:38:56.255
2017-01-06T15:38:56.255
2017-01-06T15:38:55.678
2017-01-06T15:38:55.678
2017-01-06T15:38:56.563
2017-01-06T15:39:30.355 Could not find file 'D:\home\data\Functions\packages\nuget\pdfnetnoloader\6.5.4\ofvjs2t3.tlt'.
2017-01-06T15:39:30.389
2017-01-06T15:39:30.389
2017-01-06T15:39:30.636 Installing PDFNetNoLoader 6.5.4.

这可能是什么问题?

编辑我在函数应用程序上搞砸了很多事情,所以我创建了一个新的函数应用程序来再次尝试整个过程。这次包安装成功,我可以通过 Kudu 在包文件夹中看到程序集。

在运行有关未找到程序集的代码时,我仍然遇到异常,但我认为这是该包特有的问题。

最佳答案

检查它尝试访问的那些D: 文件夹是否设置了只读标志。如果是,请将其删除并重试。

关于Azure Functions,nuget 包安装失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41509141/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com