推送到私人nuget饲料提示证书

栏目: ASP.NET · 发布时间: 7年前

内容简介:http://stackoverflow.com/questions/20228184/pushing-to-private-nuget-feed-prompts-for-credentials

我已经使用空的Web应用程序和nuget服务器包设置了一个私有的nuget feed.这是一切正常,我可以从饲料检索,我可以发布到私人饲料使用Nuget包资源管理器.

但是我不能通过命令行发布 – 它提示凭据.我已经在Appsettings中的Web应用程序中设置了ApiKey,使用了一个简单的密码,我已经尝试将ApiKey添加到push命令中.这提示我一个用户名,然后一个密码.

我也尝试过SetApiKey命令,但我也得到相同的行为.

在构建服务器上,我尝试使用相同的结果.

以下是构建日志中的错误消息(识别信息x’d out)

nuget pack "C:\Builds\2\OE Phase II\Common\src\WebApi\Web.Http\Bxxxxxxxs.Web.Http.csproj" -IncludeReferencedProjects -Properties Configuration=Release
  nuget SetApiKey Bxxxxxxx1 -Source http://tfs12.xxxxxxxrps.com/Nuget
  nuget push *.nupkg -s http://tfs12.xxxxxxxrps.com/Nuget/
  C:\Builds\2\OE Phase II\Common\bin\xxxxxxx.Web.Http.dll
  1 File(s) copied
  Attempting to build package from 'xxxxxxx.Web.Http.csproj'.
  Packing files from 'C:\Builds\2\OE Phase II\Common\src\WebApi\Web.Http\bin\Release'.
  Using 'xxxxxxxs.Web.Http.nuspec' for metadata.
  Found packages.config. Using packages listed as dependencies
  Successfully created package 'C:\Builds\2\OE Phase II\Common\bin\xxxxxxxs.Web.Http.1.0.0.0.nupkg'.
  The API Key 'xxxxxxx' was saved for 'http://tfs12.xxxxxxxrps.com/Nuget'.
  Pushing Bxxxxxxxrs.Data 1.0.0.0 to 'http://tfs12.xxxxxxxrps.com/Nuget/'...
  Please provide credentials for: http://tfs12.xxxxxxxrps.com/Nuget/
  Object reference not set to an instance of an object.
  UserName: Password:

找到的解决方案Windows Server 2012和Nuget.Server 2.8.5

>打开IIS管理器

找到你的“Nuget.Server”应用程序

>右键单击并选择“编辑权限”

>转到“安全”选项卡

为“Everyone”组添加“写入”权限.

http://stackoverflow.com/questions/20228184/pushing-to-private-nuget-feed-prompts-for-credentials


以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

社会工程

社会工程

海德纳吉 (Christopher Hadnagy) / 陆道宏、杜娟、邱璟 / 人民邮电出版社 / 2013-12 / 59.00元

本书首次从技术层面剖析和解密社会工程手法,从攻击者的视角详细介绍了社会工程的所有方面,包括诱导、伪装、心理影响和人际操纵等,并通过凯文 · 米特尼克等社会工程大师的真实故事和案例加以阐释,探讨了社会工程的奥秘。主要内容包括黑客、间谍和骗子所使用的欺骗手法,以及防止社会工程威胁的关键步骤。 本书适用于社会工程师、对社会工程及信息安全感兴趣的人。一起来看看 《社会工程》 这本书的介绍吧!

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具