2014-03-12 31 views
1

我正在嘗試將語義記錄Sql Server接收器安裝到我的應用程序中,但每次嘗試都失敗了。我得到的錯誤是(在CMD模式下):安裝Sql Server接收器時出錯 - 語義記錄

Attempting to resolve dependency 'EnterpriseLibrary.SemanticLogging (≥ 1.0)'. 
Attempting to resolve dependency 'Newtonsoft.Json (≥ 4.5)'. 
Attempting to resolve dependency 'EnterpriseLibrary.TransientFaultHandling.Data (≥ 6.0)'. 
Attempting to resolve dependency 'EnterpriseLibrary.TransientFaultHandling (≥ 6.0)'. 
Installing 'EnterpriseLibrary.TransientFaultHandling 6.0.1304.0'. 
You are downloading EnterpriseLibrary.TransientFaultHandling from Microsoft, the license agreement to which is available at http://www.opensource.org/licenses/ms-pl. Check the package for additional dependencies, which may come with their own license agreement(s). Your use of the package and dependencies constitutes your acceptance of their license agreements. If you do not accept the license agreement(s), then delete the relevant components from your device. 
Install failed. Rolling back... 
install-package : The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters. 
At line:1 char:1 
+ install-package 
+ ~~~~~~~~~~~~~~~ 
    + CategoryInfo   : NotSpecified: (:) [Install-Package], PathTooLongException 
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand 

嘗試UI和命令提示符安裝仍然沒有運氣。任何幫助將非常感激。

回答

0

有類似的問題。您可能會嘗試將這個單獨的包移動到較短的目錄中,例如C:\包。否則,將整個項目路徑(例如C:\ users \ yourname \ documents ...)移動到像c:\ MyProjects這樣的短路徑。