[英]Nuget Symbol Server in Visual Studio with ARtifactory is not working
I've set up Artifactory and uploaded some (s)nupkg packages.我已经设置了 Artifactory 并上传了一些 (s)nupkg 包。 Then i've added the artifactory feed as described in the documentation.
然后我按照文档中的描述添加了人工提要。 https://jfrog.com/knowledge-base/artifactory-how-to-configure-artifactory-as-symbol-server-and-integrate-with-visual-studio/
https://jfrog.com/knowledge-base/artifactory-how-to-configure-artifactory-as-symbol-server-and-integrate-with-visual-studio/
This nuget packages can be downloaded from artifactory as expected and all works well well.这个 nuget 包可以按预期从 artifactory 下载,并且一切正常。 Yet for some reason, i can't seem to download the pdb symbols.
但出于某种原因,我似乎无法下载 pdb 符号。
When i debug my code and look in the modules tab, i can see that the symbols are not loaded.当我调试我的代码并查看模块选项卡时,我可以看到没有加载符号。 In the log i can find an HTTP_STATUS_BAD_METHOD error:
在日志中我可以找到 HTTP_STATUS_BAD_METHOD 错误:
SYMSRV: HTTPGET: /artifactory/api/nuget/v3/etm-nuget-local-release/ETM.WCCOA.Basics.pdb/6264D37419404FE5A4A845AF52F44612ffffffff/ETM.WCCOA.Basics.pd_ SYMSRV: HttpQueryInfo(HTTP_QUERY_CONTENT_LENGTH): 800C2F76 - ERROR_HTTP_HEADER_NOT_FOUND SYMSRV: HttpQueryInfo: 80190195 - HTTP_STATUS_BAD_METHOD SYMSRV: RESULT: 0x80190195 SYMSRV: HTTPGET: /artifactory/api/nuget/v3/etm-nuget-local-release/ETM.WCCOA.Basics.pdb/6264D37419404FE5A4A845AF52F44612ffffffff/ETM.WCCOA.Basics.pd_ SYMSRV: HttpQueryInfo(HTTP_QUERY_CONTENT_LENGTH): 800C2F76 - ERROR_HTTP_HEADER_NOT_FOUND SYMSRV: HttpQueryInfo:80190195 - HTTP_STATUS_BAD_METHOD SYMSRV:结果:0x80190195
If i copy the string into my browser and add the address of the artifactory server like this: https://artifactory.etm.at:8445/artifactory/api/nuget/v3/etm-nuget-local-release/ETM.WCCOA.Basics.pdb/6264D37419404FE5A4A845AF52F44612ffffffff/ETM.WCCOA.Basics.pdb如果我将字符串复制到我的浏览器中并像这样添加人工服务器的地址: https://artifactory.etm.at:8445/artifactory/api/nuget/v3/etm-nuget-local-release/ETM.WCCOA .Basics.pdb/6264D37419404FE5A4A845AF52F44612ffffffff/ETM.WCCOA.Basics.pdb
i can download the pdb and then add it manually to the the modules and everything works as expected.我可以下载 pdb,然后手动将其添加到模块中,一切都按预期进行。 So it seems like there's a problem with the automatic download in studio from artifactory.
因此,从 artifactory 自动下载工作室似乎存在问题。 i don't know what's causing this, but the authentication should not be the problem, since i've also tried it with my admin account and the normal nuget packages are fine
我不知道是什么原因造成的,但身份验证应该不是问题,因为我也用我的管理员帐户尝试过,正常的 nuget 包没问题
if the symbol file does not exist in the cache, the VS debugger tries to download it in 3 different ways/formats:如果缓存中不存在符号文件,VS 调试器会尝试以 3 种不同的方式/格式下载它:
It is very common that the debugger fails to download the desired symbol file using the second (.pd_) or third (file.ptr) format (even with other Symbol Servers, like Nuget.org for example), but it should have tried to download the symbol file using the first format, which is the same request that worked for you manually using the browser.调试器无法使用第二种 (.pd_) 或第三种 (file.ptr) 格式(即使使用其他符号服务器,例如 Nuget.org)下载所需的符号文件是很常见的,但它应该尝试使用第一种格式下载符号文件,这与使用浏览器手动为您工作的请求相同。
Can you add the full output from the debugger?你能从调试器中添加完整的 output 吗? Or alternatively, can you check in your "artifactory-request.log" which requests you see that contain "/artifactory/api/nuget/v3/etm-nuget-local-release/ETM.WCCOA.Basics.pdb/6264D37419404FE5A4A845AF52F44612ffffffff/"?
或者,您能否检查您的“artifactory-request.log”,您看到哪些请求包含“/artifactory/api/nuget/v3/etm-nuget-local-release/ETM.WCCOA.Basics.pdb/6264D37419404FE5A4A845AF52F44612ffffffff/” ? Those details would be very helpful.
这些细节会很有帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.