小编Doc*_*zel的帖子

到本地主机的新 PSSession 失败

我有一个脚本可以打开到本地主机的远程会话。我需要这个来从登录脚本中在某些设备上安装 NuGet。

$Username = "Admin"  
$Password = ConvertTo-SecureString ‘adminPW’ -AsPlainText -Force
$adminCredential = New-Object System.Management.Automation.PSCredential $Username, $Password
$Session = New-PSSession  -Credential $adminCredential
Invoke-Command -Session $Session -ScriptBlock {Install-PackageProvider -Name NuGet -Verbose -MinimumVersion 2.8.5.201 -Force}
Run Code Online (Sandbox Code Playgroud)

每次我尝试运行它时,我都会收到以下错误:

New-PSSession : [localhost] 连接到远程服务器 localhost 失败并显示以下错误消息:客户端无法连接到目标 
请求中指定。验证目标上的服务是否正在运行并且正在接受请求。查阅日志和文档以了解
在目标上运行的 WS-Management 服务,最常见的是 IIS 或 WinRM。如果目标是 WinRM 服务,请在
分析和配置 WinRM 服务的目标:“winrm quickconfig”。有关详细信息,请参阅 about_Remote_Troubleshooting 帮助主题。
在 C:\Users\Mike Holtackers\OneDrive - Foreign Trade Association\Scripts\OutlookSig\getAADconnectionOK.ps1:5 char:12
+ $Session = New-PSSession -ConnectionUri $ConnectionURI -Credential $a ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~
    + CategoryInfo : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) …

powershell powershell-remoting

6
推荐指数
2
解决办法
1万
查看次数

Visual Studio Borland DLL错误

如果我在Visual Studio 2012中运行该应用程序,它就像一个魅力,但当我尝试在bin文件夹中运行.exe文件时,我收到此错误:

System.IO.FileLoadException: Could not load file or assembly       'Borland.Data.DbxCommonDriver, Version=16.0.0.0, Culture=neutral, PublicKeyToken=a91a7c5705831a4f' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
File name: 'Borland.Data.DbxCommonDriver, Version=16.0.0.0, Culture=neutral, PublicKeyToken=a91a7c5705831a4f'
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName …
Run Code Online (Sandbox Code Playgroud)

database interbase visual-studio-2012

3
推荐指数
1
解决办法
1093
查看次数

编织:错误:pandoc 文档转换失败,错误 61

问题 我们的最终用户无法生成 html 文件,出现此错误:错误:pandoc 文档转换失败,错误 61 执行暂停

TS Performed 我们为之前的错误消息设置了代理。之前的错误是:

pandoc.exe: Could not fetch \\HHBRUNA01.hq.corp.eurocontrol.int\alazarov$\R\win-library\3.5\rmarkdown\rmd\h\jquery\jquery.min.js
ResponseTimeout
Error: pandoc document conversion failed with error 67
Execution halted  
Run Code Online (Sandbox Code Playgroud)

为此,我们将 "self_contained: no" 添加到 RProfile.Site> 我们还尝试了 "Self_Contained: yes" 。

当前错误信息

Could not fetch http://?/UNC/server.contoso.int/username$/R/win-library/3.5/rmarkdown/rmd/h/default.html
HttpExceptionRequest Request {
  host                 = ""
  port                 = 80
  secure               = False
  requestHeaders       = []
  path                 = "/"
  queryString          = "?/UNC/server.contoso.int/username$/R/win-library/3.5/rmarkdown/rmd/h/default.html"
  method               = "GET"
  proxy                = Just (Proxy {proxyHost = "pac.contoso.int", proxyPort = 9512})
  rawBody              = False
  redirectCount        = 10 …
Run Code Online (Sandbox Code Playgroud)

r pandoc rstudio

2
推荐指数
1
解决办法
2862
查看次数