简体   繁体   English

软件包名称路径-完全限定后,路径太长

[英]Package name path - The path is too long after being fully qualified

While trying to run code locally for testing, I get a path too long server error. 尝试在本地运行代码进行测试时,出现路径太长的服务器错误。 I don't have much control over the actual files, particularly because we're dealing with external packages, but it has to be the temp file location causing the issue, the only path in the error that breaks is the one here: 我对实际文件没有太多控制权,特别是因为我们正在处理外部软件包,但必须是导致问题的临时文件位置,错误中唯一中断的路径是这里:

file:///C:/Users/AndrewXXXXXXX/AppData/Local/dftmp/Resources/f18770c5-ec0e-43b9-a034-5fdfb17ca0ea/temp/temp/RoleTemp/Temporary ASP.NET Files/root/15dc497d/324adb56/Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling.Data/Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling.Data.DLL

That's 300 characters, much of it taken up by the stupidly long package name, which repeats twice. 那是300个字符,其中很大一部分被愚蠢的长包装名占用,重复两次。 The actual file in the project bin has a length of 164 characters, so that isn't the issue. 项目箱中的实际文件长度为164个字符,所以这不是问题。 Is there anything I can do to move this temp folder? 我有什么办法可以移动此临时文件夹? I changed my system's %temp% to D:\\Temp\\ hoping it was using that, but no luck. 我将系统的%temp%更改为D:\\Temp\\希望它正在使用它,但是没有运气。

Im guessing by the folder structure, your working with azure? 我想通过文件夹结构来猜测,您正在使用azure? You should be able to change the path to the temporary folder by setting the _CSRUN_STATE_DIRECTORY to a shorter path. 通过将_CSRUN_STATE_DIRECTORY设置为较短的路径,您应该能够将路径更改为临时文件夹。 Have a look at the following. 看一下以下内容。

https://blogs.msdn.microsoft.com/jnak/2010/01/14/windows-azure-resolving-the-path-is-too-long-after-being-fully-qualified-error-message/ or here How to change Azure local deploy directory? https://blogs.msdn.microsoft.com/jnak/2010/01/14/windows-azure-resolving-the-path-is-too-long-after-being-fully-qualified-error-message/或在这里如何更改Azure本地部署目录?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM