安装包时Nuget出错

时间:2014-04-22 07:58:09

标签: nuget

从Nuget安装软件包时遇到错误。错误是:

  

参数不正确。

     

在WebMatrix中使用Nuget时,它仍然是错误的。
以下内容   是WebMatrix中的堆栈strace发生错误。参数是   不正确。 System.Security.Cryptography.CryptographicException:The   参数不正确。在   System.Security.Cryptography.ProtectedData.Unprotect(字节[]   encryptedData,Byte [] optionalEntropy,DataProtectionScope scope)at   NuGet.EncryptionUtility.DecryptString(String encryptedString)at   NuGet.SettingsExtensions.GetDecryptedValue(ISettings settings,String   section,String key)at   NuGet.SettingsExtensions.GetConfigValue(ISettings settings,String   key,Boolean decrypt)在NuGet.ProxyCache.GetUserConfiguredProxy()at   NuGet.ProxyCache.GetProxy(Uri uri)at   NuGet.RequestHelper.GetResponse(Func键1 createRequest, Action 1   prepareRequest,IProxyCache proxyCache,ICredentialCache   credentialCache,ICredentialProvider credentialProvider)at   NuGet.HttpClient.GetResponse()在   NuGet.RedirectedHttpClient.GetResponseUri(HttpClient客户端)at at   NuGet.RedirectedHttpClient.EnsureClient()at   System.Lazy 1.CreateValue() at System.Lazy 1.LazyInitValue()at   System.Lazy 1.get_Value() at NuGet.MemoryCache.GetOrAdd[T](Object cacheKey, Func 1工厂,TimeSpan到期,布尔值   在NuGet.RedirectedHttpClient.get_CachedClient()的absoluteExpiration)   在NuGet.RedirectedHttpClient.get_Uri()处   NuGet.DataServicePackageRepository.get_Context()at   NuGet.DataServicePackageRepository.Search(String searchTerm,   IEnumerable 1 targetFrameworks, Boolean allowPrereleaseVersions) at NuGet.PackageRepositoryExtensions.Search(IPackageRepository repository, String searchTerm, IEnumerable 1 targetFrameworks,Boolean   allowPrereleaseVersions)at   Microsoft.WebMatrix.PackageManagement.WebProjectManager.GetRemotePackages(字符串   searchTerms,Boolean filterPreferred)at   Microsoft.WebMatrix.NuGet.NuGetPackageManager.GetRemotePackages()at   Microsoft.WebMatrix.NuGet.Data.VirtualizingListViewFilter.OnQueryChanged()   在   Microsoft.WebMatrix.NuGet.Data.VirtualizingListViewFilter.set_PackageManager(INuGetPackageManager   值)在Microsoft.WebMatrix.NuGet.FilterManager.UpdateAllFilter()at   System.Threading.Tasks.Task.InnerInvoke()at   System.Threading.Tasks.Task.Execute()

1 个答案:

答案 0 :(得分:0)

webmatrix没有包管理器控制台。你在同一台机器上安装了visual studio吗?

如果您在visual studio中打开同一个网站并在那里输入install-package * 该怎么办?

此外,您执行的任何特殊安装或设置?