在Windows Server 2012 R2上,在安装更新KB4340558(更新历史记录)/ KB4338424(已安装的更新)之后,我们无法再使用32位模式在经典ASP中实例化.NET .DLL(interop)server.createobject
.我们收到错误0x800A01AD"ActiveX组件无法创建对象"
当我们卸载更新时,错误消失.尽管我付出了最大的努力,但我无法找到卸载的替代解决方案.我们希望重新安装更新并对Windows Server和/或DLL进行必要的更改,以允许正确地实例化COM对象.系统日志中没有线索,CVE数据库中没有线索,也没有ASP生成错误的线索.请帮忙!
我正在尝试删除包含子文件夹/文件的文件夹.
Remove-Item -Force -Recurse -Path $directoryPath
Run Code Online (Sandbox Code Playgroud)
我收到了错误 Cannot remove item. The directory is not empty.
我PowershellScript.ps1有executionPolicy不受限制.我尝试使用当前登录用户删除的根文件夹具有此文件夹的完全权限.
在我的本地电脑上,代码有效,但不在我的电脑上Windows Server 2012 R2
.
我有一个php应用程序(按要求)扫描一些文件的存在.(在网络共享上)
我正在使用glob
这个,因为通常我只知道文件名的开头.
我注意到,这glob
不会返回当前由任何客户端打开的文件,因此我的应用程序认为file_xy
不存在,如果有人打开它.
有没有办法让glob
回复打开(:=锁定?)文件?
奇怪的是,这没有提到的地方.但是我可以确认glob不返回当前由客户端打开的文件...(一旦客户端关闭访问应用程序,glob
将像往常一样返回文件)
ps.:glob("\\server\share\*")
只要打开文件就不会返回文件.(网络共享允许最大并发用户数)
$dir = opendir ("\\server\share");
while ($file = readdir($dir)){
echo $file."<br />";
}
Run Code Online (Sandbox Code Playgroud)
无论是否由其他客户打开,都可以完美地显示相关文件. - 所以我几乎可以排除任何访问限制/许可的东西......
我想通了的原因,即使我不知道原因,现在:
glob()
当文件位于使用Windows Server 2012 R2内置重复数据删除功能的驱动器上时,将显示未找到打开文件的问题.
如果我将文件移动到非重复数据删除共享glob()
,即使由多个客户端打开,也可以读取它.
由于我有一个可行的替代方案,这个问题应该主要关注为什么 glob不起作用的问题- 或者让我们说这里的工作不同.在如何glob
以及readdir
访问底层文件系统以确定内容方面必须有所不同.
还有另一个证明,这与数据重复数据删除有关:我将该功能配置为"仅"重复删除超过3天的文件.
我设置了一个cronjob,"打开并整理"共享中的某个文件.一旦它大约3天(Windows决定何时进行重复数据删除),当它由另一个客户端打开时,glob无法列出该文件.
因此,glob能够找到打开的文件,这些文件在前3天内被复制到共享中 - 然后在进行重复数据删除后开始错过它.
glob
失败,导致这篇文章:-)
使用上面提到的scandir
函数显示了相同的行为:
我想再次强调, …
我们使用Windows更新修补了SharePoint 2013服务器,从那时起我们收到以下错误.我们已重新启动服务器,手动删除了Windows更新,然后重新启动服务器,在Windows更新之前恢复到Windows服务器的副本,但错误仍然存在.我们还从Windows目录中删除了临时文件,没有任何帮助.
Loading this assembly would produce a different grant set from other instances. (Exception from HRESULT: 0x80131401)
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.FileLoadException: Loading this assembly would produce a different grant set from other instances. (Exception from HRESULT: 0x80131401)
Source Error:
An unhandled exception was generated during the execution of …
Run Code Online (Sandbox Code Playgroud) 我有一个asp.net MVC应用程序,它有一个控制器动作,它接受一个字符串作为输入,并发送一个合成语音的响应wav文件.这是一个简化的例子:
public async Task<ActionResult> Speak(string text)
{
Task<FileContentResult> task = Task.Run(() =>
{
using (var synth = new System.Speech.Synthesis.SpeechSynthesizer())
using (var stream = new MemoryStream())
{
synth.SetOutputToWaveStream(stream);
synth.Speak(text);
var bytes = stream.GetBuffer();
return File(bytes, "audio/x-wav");
}
});
return await task;
}
Run Code Online (Sandbox Code Playgroud)
应用程序(特别是此操作方法)在2008 R2服务器,2012(非R2)服务器和我的8.1 dev PC上的服务器环境中运行良好.它在标准的Azure 2012 R2虚拟机上运行良好.但是,当我将其部署到三个2012 R2服务器(最终的永久主页)时,操作方法永远不会产生HTTP响应 - IIS工作进程无限期地最大化其中一个CPU核心.事件查看器中没有任何内容,并且在使用Procmon查看服务器时没有任何内容跳出来.我已经通过远程调试附加到进程,并且synth.Speak(text)
永远不会返回.当synth.Speak(text)
执行呼叫我立即看到在服务器的任务管理器失控W3wp.exe进程.
我的第一个倾向是相信一些过程在服务器上干扰语音合成,但是Windows讲述者工作正常,像这样的简单控制台应用程序也能正常工作:
static void Main(string[] args)
{
var synth = new System.Speech.Synthesis.SpeechSynthesizer();
synth.Speak("hello");
}
Run Code Online (Sandbox Code Playgroud)
所以显然我不能责怪服务器的语音合成.那么也许我的代码中存在问题,或者IIS配置中有什么奇怪的东西?如何在这些服务器上使此控制器操作正常工作?
这是测试操作方法的简单方法(只需url
为路由获取正确的值):
<div>
<input type="text" id="txt" autofocus />
<button type="button" …
Run Code Online (Sandbox Code Playgroud) c# asp.net-mvc text-to-speech speech-synthesis windows-server-2012-r2
我已经设置了一个运行IIS 8.5的新Windows 2012 R2服务器.
我们注意到,当发生错误(例如,ASP.NET状态服务未运行)而不是输出500状态代码错误屏幕时,请求实际上返回一个完全空白的页面(只有标题 - 没有内容).我们显然需要查看错误并为错误提供200 OK可能对Google等索引器或任何wesite监控工具(这不会通知我们该网站已脱机)存在问题.
在我们的其他服务器(IIS 7)上,我们看到"黄色错误屏幕",其中包含"无法连接到状态服务器"(或类似)的消息.
这可能有什么问题?是否有一些设置可以全局禁用所有错误(但如果它也提供200状态代码,这将是愚蠢的)或者其他可能阻碍其他方式?
唯一可能干扰的是我们在服务器上安装了ISAPI_Rewrite(但这通常不会导致这个问题).
谢谢!
我收到There was as error while performing this operation
关于 web.config 的错误。我遵循以下配置:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />
</handlers>
<aspNetCore processPath="dotnet" arguments=".\MES.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" />
</system.webServer>
</configuration>
<!--ProjectGuid: e8701310-485f-4f88-b7d0-1473d07238ac-->
Run Code Online (Sandbox Code Playgroud)
<aspNetCore processPath="dotnet" arguments=".\MES.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" />
Run Code Online (Sandbox Code Playgroud)
我让Jenkins在Windows上运行作为服务.通常,它在机器启动时启动.
在今天下午Windows推荐的更新和机器重启之后,我的Jenkins就停止了工作.
我启动服务但它停止并显示以下警告:
"The Jenkins service on Local Computer started and then stopped. Some
services stop automatically if they are not in use by other services or
programs."
Run Code Online (Sandbox Code Playgroud)
没有"jenkins.err.log"文件,如果我用"java jenkins.war"启动Jenkins它工作正常.
有什么提示发生了什么?如何解决这个问题?请帮忙.
非常感谢你.
我使用了一个可用的 ASP.NET Core 2.2 应用程序,将其升级到 3.0,突然该应用程序不再在 Windows Server 2012 中运行。它出现了以下内容:
ERR_HTTP2_INADEQUATE_TRANSPORT_SECURITY
似乎在我不得不选择加入 HTTP/2 之前,现在它与 HTTP1.1 一起成为默认设置。这里有一个帖子,https://github.com/aspnet/AspNetCore/issues/14350
但这完全令人困惑,没有真正的解决方案。
我尝试了各种启用/禁用不安全协议但无济于事。比如https://www.admin-enclave.com/de/articles-by-year/11-data-articles/website_articles/articles/exchange_articles/405-resolved-error-err_spdy_inadequate_transport_security-when-using-google-chome-和-owa.html
由于我认为更好的协议套件,在 Windows 10 上运行良好。但是在 Fiddler 中,我检查了与 Kestrel 谈判时的唯一区别是:
Windows Server 2012 R2:
[0A0A] Unrecognized cipher - See http://www.iana.org/assignments/tls-parameters/
[1301] Unrecognized cipher - See http://www.iana.org/assignments/tls-parameters/
[1302] Unrecognized cipher - See http://www.iana.org/assignments/tls-parameters/
[1303] Unrecognized cipher - See http://www.iana.org/assignments/tls-parameters/
[C02B] TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
[C02F] Unrecognized cipher - See http://www.iana.org/assignments/tls-parameters/
[C02C] TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384
[C030] Unrecognized cipher - See http://www.iana.org/assignments/tls-parameters/
[CCA9] Unrecognized cipher - See http://www.iana.org/assignments/tls-parameters/ …
Run Code Online (Sandbox Code Playgroud) c# https network-protocols windows-server-2012-r2 asp.net-core
我正在尝试使用Windows Server 2012R2上的TeamCity为.NET Framework 4.6.2(而不是.NET Core)构建ASP.NET Core 2.0应用程序.
服务器中安装了以下组件:
TeamCity使用nuget版本4.1和解决方案文件来恢复依赖包(有关详细信息,请参阅下面的完整日志).
错误:
[22:57:51]
[22:57:51]Errors in C:\path\to\project\Server\Server.csproj
[22:57:51] Package Microsoft.AspNetCore 2.0.0 is not compatible with net462 (.NETFramework,Version=v4.6.2). Package Microsoft.AspNetCore 2.0.0 supports: netstandard2.0 (.NETStandard,Version=v2.0)
[22:57:51] Package Microsoft.AspNetCore.Mvc 2.0.0 is not compatible with net462 (.NETFramework,Version=v4.6.2). Package Microsoft.AspNetCore.Mvc 2.0.0 supports: netstandard2.0 (.NETStandard,Version=v2.0)
[22:57:51] One or more packages are incompatible with .NETFramework,Version=v4.6.2.
[22:57:51] Package Microsoft.AspNetCore 2.0.0 is not compatible with …
Run Code Online (Sandbox Code Playgroud) teamcity nuget-package-restore windows-server-2012-r2 .net-4.6.2 asp.net-core-2.0
asp.net ×2
c# ×2
iis ×2
iis-8 ×2
.net ×1
.net-4.6.2 ×1
asp-classic ×1
asp.net-core ×1
asp.net-mvc ×1
com ×1
glob ×1
https ×1
jenkins ×1
php ×1
powershell ×1
service ×1
sharepoint ×1
teamcity ×1