问题标签 [windows-server-2016]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
160 浏览

winapi - 在 MSVCR120.dll 和 MSVCP120.dll 等运行时 dll 上找不到 Proc

我正在使用NanoServerApiScan.exe扫描我的二进制文件以获取 nano 服务器支持。它返回如下错误,

我可以按照建议使我的二进制文件在 nano 服务器上工作。扫描还会返回 MSVCR120.dll 和 MSVCP120.dll 中的错误,

如何修复这类错误?反向转发器包也可以重新路由这些 API 吗?如果我的客户没有为他的服务器配置反向转发器怎么办?

0 投票
1 回答
1379 浏览

deployment - 在 Windows Server 2016 上远程调试 UWP 应用

目标

我想使用 Windows Server 2016 (x64) 远程调试 UWP 应用程序。原因?我的工作 PC 仍然运行 Windows 7 实例,并且无法在 Windows 7 机器上部署 UWP 应用程序。

问题

我已经在 Windows Server 2016 机器上安装了 Visual Studio 2015 的远程工具并在端口 4020 上启动它。身份验证模式设置为“无”。我也在服务器上启用了开发人员模式。我还在 Visual Studio 中设置了我的项目以使用远程机器进行调试。

问题是,每当我尝试将我的解决方案部署(只是部署,甚至不调试)到服务器时,都会发生以下情况:

Visual Studio 显示以下输出:

然后永远挂起

同时,服务器上的远程工具显示以下输出:

这表明我的 Windows 7 PC 和目标 Windows Server 2016 机器之间必须至少有一些通信。

不显示任何错误消息(在 Visual Studio 和远程调试器中都没有)。

问题

知道为什么部署会永远挂起而没有错误消息吗?还是我试图完成一项不可能完成的任务?Windows Server 2016 是否能够运行 UWP 应用程序?

更新

我直接在 Windows Server 2016 上安装了 VS 2015 Update 3。我能够直接在服务器上创建和调试一个简单的 UWP 应用程序,因此服务器显然能够运行 UWP 应用程序。但是我仍然无法使远程调试工作。也许问题完全出在我本地的 Windows 7 PC 上,与 Windows Server 无关。奇怪的是,“读取包配方文件”时进程挂起。会不会是防病毒软件在拦截?

0 投票
1 回答
218 浏览

windows - 如何在 Windows 2016 下移动 Docker 映像的存储位置

我已经为我的开发人员自动创建了虚拟机,我想分发这个基础映像,并将辅助驱动器的创建脚本编写到他们想要的容器存储大小。

我不知道如何将默认的 docker 映像文件夹从 C: 驱动器更改为 E: Data 驱动器。

希望有人已经弄清楚了这一点,并可以为我指明正确的方向。

0 投票
3 回答
31223 浏览

php - Cannot load c:/php/php5apache2_4.dll into server: The specified module could not be found

When trying to use PHP 5.6.30 with Apache 2.4 there seems to be a somewhat well-known issue (outside of using Docker) but there does not seem to be any real solution for fixing the issue. I am getting the following error:

httpd.exe: Syntax error on line 534 of C:/Apache24/conf/httpd.conf: Cannot load c:/php/php5apache2_4.dll into server: The specified module could not be found.

Examining the directory of C:\php (inside the Docker container) I see the DLL is clearly there

This answer talks about making sure to use the same bit version (I am using 64 bit) and to also make sure the versions are thread safe, which they are. Here, in my Dockerfile, you can see the links to the 64 bit thread-safe versions of Apache and PHP:

Note the Visual Studio compiler is for 2015. Do I really need to level the playing field for using the compiler?

Finally, the following lines in the httpd.conf (line 534, mentioned in the error, is the line starting with LoadModule)are what is causing the error to show in the Docker logs for the container when started. I have them commented out at the moment so I could get Apache to start as a stand-alone (allowing me to examine what is going on inside of the container).

I plan to deploy some existing PHP code in the container and do not want to upgrade to PHP7 (which will create more work to fix some things with code which will fail on PHP7). Outside of upgrading to PHP 7 is there any other way to fix the issue?

0 投票
1 回答
1353 浏览

c# - 将 Web 应用程序从 Windows Server 2008 迁移到 Windows Sever 2016

我正试图为我在学校的一位教授解决一个问题。他有一个 C# Web 项目,他正试图将其从运行 Windows Server 2008 的计算机转移到运行 Windows Server 2016 的较新计算机上。它由 IIS 提供服务,学生通过导航到计算机的 IP 地址来访问应用程序。电脑。

在旧计算机上,他只需将项目文件夹复制到 C:\inetpub\wwwroot 中,当他从另一台计算机导航到 localhost 或他的 IP 地址时,应用程序就会运行。但是,当他将项目文件夹复制到 C:\inetpub\wwwroot 时,项目不会运行。相反, 这是他得到的屏幕。如果您单击“autograder”文件夹(这是他尝试托管的项目文件夹),则会发生此 HTTP 错误。web.config 文件位于此处 - C:\inetpub\wwwroot\autograder\Bin\WebApplication1\WebApplication1\web.config

在网上四处寻找解决方案后,我确保 wwwroot 文件夹具有所需的权限(Web.Config - 由于权限不足而无法读取配置文件),但我不确定为什么错误说它无法读取配置文件, Windows Server 2016 的不同之处也在于阻止项目像在 Windows Server 2008 上那样运行。

这是 web.config 文件:

我通常是 Windows Server、IIS 和 Windows 上的 Web 托管的新手,因此我非常感谢任何有关此错误发生原因或我可能需要对项目进行哪些更改以使其在 Windows Server 2016 上运行的信息。

0 投票
0 回答
9872 浏览

angularjs - 使用 WebAPI (MVC 6) 运行 Angular 站点的推荐系统要求是什么

我刚买了一台装有 Windows Server 2016 的 VPS。规格是:2GB RAM,2 CORE

我认为这还不够好,因为当我访问该页面时,加载第一页需要 5+ 秒,它甚至没有调用 API。从 API 检索数据的最重页面需要 15 秒以上,并且该数据被缓存。这仅适用于 1 个用户。

我曾尝试使用缓存,但它似乎并没有加快页面速度。我已将 EF 中最繁重的调用改为使用 Dapper.NET。它在我的开发者机器上运行得很快,但在 VPS 上却不行。

一切都在同一台服务器上运行。Windows Server 2016、IIS、SQL Express Server 2014、角

有什么想法吗?

0 投票
4 回答
4208 浏览

php - PHP 管理器 IIS 无法在 Windows Server 2016 上安装

我最近安装了 Windows Server 2016,并试图让我的 IIS 10 设置来创建一个站点。PHP 5.6.30 安装得很好,但PHP Manager 1.2WinCache 1.3 for PHP 5.6CGI​​ 没有安装!

对话图像: http://i.imgur.com/9aAa48o.png

我尝试将MajorVersion 设置为 7(和其他值),但安装程序仍然失败。我已经安装了 .NET 4.5>。

0 投票
1 回答
630 浏览

c# - 是 Windows Server 2016 中的 Microsoft.Interop.Security.Azroles

授权管理器 (azman.msc) 已在 Windows Server 2012 R2 中被弃用,并且看起来它可能不在 Windows Server 2016 中。

但我在 Windows Server 2016 中找不到有关 Microsoft.Interop.Security.Azroles 的任何信息。我​​在哪里可以找到有关此的信息?

0 投票
1 回答
2911 浏览

.net - 如何在 Windows 2016 RTM ADFS 上为富客户端或 Web 应用程序配置客户端和信赖方信任?

我之前有一个使用 Windows 2012 R2 ADFS 进行身份验证的富客户端,并在此处记录了它。我们正在迁移到 Windows 2016 RTM ADFS(因为 2012 R2 不正确支持 Web Apps/ADAL.js),我正在努力翻译/扩展该配置以使其正常工作。无论我做什么,只要客户端点击 ADFS,我就会得到一个错误:

对于 ADFS 2016 的预览版,我发现了几个对此问题的响应,并且都提出了相同的解决方案 - 使用 powershell 设置依赖方并指定以下选项:

但是,我采用了这些解决方案显示的确切代码,并尝试手动将访问控制策略设置为“允许所有人”(默认),或者使用 -IssuanceAuthorizationRules 设置,但都没有解决这个问题。

是否有人对此错误有其他解决方案或在 Win 2016 RTM 上使用 ADFS 的经验?

0 投票
1 回答
640 浏览

iis - Teamcity 服务器 url 返回 404

我在 Windows Server 2016 机器上安装了 TeamCity,并将 ci.mydomain.com 分配给了 serverUrl。我在托管我的 nuget 服务器的那台机器上也有 IIS。

当我输入 ci.mydomain.com 时,它返回 404。nuget.mydomain.com 工作正常

有谁知道为什么?

提前致谢