小编Ed *_*ley的帖子

vcruntime140.dll 14.0 与 PHP 版本不兼容

我已经在 Windows Server 2016 机器上下载了PHP 7.4.1 NTS vc15 x86。我也下载安装了vc_redist.x86.exe

当我尝试从命令提示符运行 php-cgi 时,出现以下错误:

PHP 警告:'vcruntime140.dll' 14.0 与第 0 行未知中与 14.16 链接的 PHP 版本不兼容

关于如何解决这个问题的任何想法?我想我可以从档案中安装旧版本的 PHP,但这并不能真正解决问题。

php vcredist windows-server-2016

65
推荐指数
6
解决办法
9万
查看次数

在Visual Studio 2017中创建安装程序/ MSI安装程序

我在Visual Studio Pro 2017(VB.NET)中编写了一个outlook加载项VSTO.我发布了它创建了一个setup.exe但是我想创建一个适当的安装程序,可以在本地复制文件,并且可以静默运行等.

我该怎么做呢?当我去创建新项目时,没有安装程序项目选项.

谢谢

installer visual-studio-2017

41
推荐指数
2
解决办法
9万
查看次数

捕获powershell警告

如果我尝试从一开始就没有权限的人的邮箱中删除邮箱权限,我正在尝试捕获抛出的警告。

#$WarningPreference = "continue"
try
{
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
Remove-MailboxPermission -Identity "test2" -User "test1" -AccessRights FullAccess -InheritanceType All -confirm:$False | Out-File c:\temp\output2.txt -Encoding ASCII
}
catch
{
#Write-Warning -Message $($_.Exception.Message) 3 > c:\temp\warning.txt
}
Run Code Online (Sandbox Code Playgroud)

output2.txt 或 warning.txt 中都没有输出 - 我做错了什么?

我试图捕获的警告显示为黄色并说:

WARNING: The cmdlet extension agent with the index 0 has thrown an exception in OnComplete(). The exception is:
System.InvalidOperationException: Operation is not valid due to the current state of the object.
   at Microsoft.Exchange.Data.Storage.ExchangePrincipal.get_ServerFullyQualifiedDomainName()
   at Microsoft.Exchange.Data.Storage.MailboxSession.Initialize(MapiStore linkedStore, LogonType logonType,
ExchangePrincipal owner, …
Run Code Online (Sandbox Code Playgroud)

powershell warnings exchange-server

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