问题标签 [windows-server-2000]

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 投票
1 回答
372 浏览

windows - Old-School Windows 2000 Printing, or When is a Port Name a Computer?

A few years back, another clever programmer set up a VB.NET service to print to one of the server's installed printers. The job queried a database table to see if it had any print requests, which specify the file to print and the name of the printer to send it to. The job constructs a 3-part command line incantation and executes it; it goes a little something like this:

We've been asked to make other unrelated changes to this job, and happily complied. Only any version of the job we deploy and run simply will not print. The first statement fails with "System error 67 has occurred. The network name cannot be found."

The job has queried the registry to find the port name for the printer specified by the user. The port it tries is indeed the port "name" we see when looking at the printer's properties. So that's, uh, correct.

Except...wait a minute, what in the heck is a "port name"? It's not a valid IP address (though it IS the IP address of the printer itself, prefixed with "IP_". Nothing I can find on NET USE ever says anything about a printer port, only a computer/share [and optional volume].

Can anyone shed any light as to whether this could have EVER worked?

[Of course, no one can provide us with the source for the version of the service that actually still works. We've not touched this portion of the service, only what precedes this printing. And the client swears they haven't either. Grrr...]

We are looking at a more modern way of printing, though the fact that it needs to run as a service complicates things.

0 投票
1 回答
631 浏览

silverlight - windows 2000 Box 是否支持 silverlight 3.0?

我有一个客户带着相当旧的盒子,希望确保我们仍待编码的基于 Silverlight 的解决方案可以在 windows 2000 / IE6 上运行

有人有这个方案的经验吗?

谢谢

0 投票
2 回答
1632 浏览

apache - Apache 2 Windows 旋转日志帮助

我一直在尝试在 Windows Server 2k 上使用 rotatelogs.exe 来轮换 access.log。但是每当我重新启动 apache 时,它​​会在读取 http.conf 时出错

这是行:

我不知道为什么它不起作用。路径正确,定义了通用日志格式。我的语法在某处有问题吗?

0 投票
1 回答
264 浏览

dns - 在 Windows 2008 中设置 DNS 服务器所需的帮助

嗨,我正在尝试在我的本地网络上设置 DNS 服务器,这样当客户端机器执行 NSLOOKUP MYPCNAME 时,它会返回 MYPCNAME 的 IP 地址

我在服务器上安装了 DNS,并添加了一个名为“LAN”的正向查找区域为 MYPCNAME 添加了一条 A 记录以指向 192.168.1.10

现在我可以使用完全限定名称查找名称,因此 NSLOOKUP MYPCNAME.LAN 将返回 192.168.1.10 但是如果我执行 NSLOOKUP MYPCNAME 它不会返回任何内容。

如何配置我的 DNS 以便 NSLOOKUP MYPCNAME 也返回 ip?

如果我将正向查找区域添加为根,那么我可以使用 MYPCNAME 进行查找,但是 Internet 上的其他名称解析不起作用,因为服务器成为根。

0 投票
1 回答
733 浏览

c# - 连接到远程 2008 服务器上的 IIS 元数据库

我编写了一些代码来检查 iis 元数据库以查看安装了哪些站点以及它们的虚拟目录保存在哪里。此代码在服务器本地运行时运行良好。

我正在尝试扩展它以使其远程工作。我正在努力让它进行身份验证的事情。我目前正在使用LogonUserapi,但这总是在登录时返回 false

  • 我知道我拥有的证书很好
  • 我和服务器之间没有防火墙
  • 如果我在没有LogonUserAPI 调用和用户 runas 的情况下从命令行运行应用程序,我会收到错误消息:COMException (0x80005000)

任何想法将不胜感激。

0 投票
4 回答
615 浏览

asp-classic - ASP 服务器端代码怎么会破坏智能引号 '?

我的公司刚刚将许多列从 varchar 转换为 nvarchar。

现在看来,当我们将智能引号(即 ALT+0146 ')渲染到屏幕上,然后将其发送回 SQL Server 2000 数据库进行持久化时,智能引号会损坏为 - ’ -。

我的问题:

ASP 服务器端代码如何破坏智能引用 ' ?

编辑:看来我的问题与类似。顺便说一句,Powerpoint 内容将智能引用引入了组合中。然而,正如我之前所说,我正在处理一个 ASP 页面,而引用的问题与 PHP 页面有关。

编辑:服务器端指令CODEPAGE=65001使页面正确呈现,但它仍然在 Windows 2000 框中将内容发布为“西欧”。有谁知道为什么?

0 投票
1 回答
389 浏览

javascript - IIS 5.0 是否需要唯一的配置设置才能支持 UTF-8?

[注意:我只能在运行 IIS 5.0 的 Win2k Web 服务器上重现此问题。我无法使用运行 IIS 5.1 的 Windows XP Web 服务器 (localhost) 重现此问题。]

我发现了很多与 UTF-8 编码相关的信息。

如果我学到了一件事,那就是这个

编辑:MSDN 为 IIS 5.0 及更早版本提供了Response.CodePage is not available。目前,我无法验证这是我问题的根源。

说了这么多,这是我的问题:

IIS 5.0是否需要唯一的配置设置才能支持 UTF-8?

我问的原因:尽管我尽最大努力听取了 Google 和 SO 的所有建议,但我仍然无法将 UTF-8 字符正确地发布到服务器。

这是我的场景:

  • 将 UTF-8 编码的 unicode 字符串渲染到屏幕上。[工作正常,通过目测验证。]
  • 使用 javascript,将这些 UTF-8 编码的 unicode 字符串存储在表单变量中。[工作正常,已通过 Firebug 验证。]
  • 发布到同一网页。[页面发布后特殊字符在服务器上损坏。]
0 投票
1 回答
990 浏览

sockets - .NET 2.0:已建立的连接被主机中的软件中止

设想:

  • 我尝试使用以下代码将视频发布到 YouTube:

    YouTubeEntry createdEntry = service.Upload(newEntry);

  • 这在我的开发人员机器(运行 Windows XP)上运行良好。

  • 它在 Win2k 服务器(运行 .NET 2.0)上失败,并出现以下错误:

2010-07-15||01:14:08 PM||已建立的连接被主机中的软件中止||系统|||| 在 System.Net.Sockets.Socket.Send(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags) --> at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size)

我的问题:

  • 我应该如何解决这个问题?
0 投票
1 回答
301 浏览

php - 让 GD2 在 Windows 2000 SP4 (PHP 5.1.6) 上运行

我已经尝试了一切.. GD不会启用!本质上,我有

我已将c:\php\ext和添加c:\php到我的 Windows 路径变量中。我复制php_gd2.dll到我的system32文件夹.. 我扫描了我的整个 INI 文件,看看是否有任何其他对 extension_dir 或 GD2.dll 扩展行的引用,什么都没有...... GD 仍然无法启用。

更新

我更改了php.ini我的C:\PHP文件夹和我的C:\WINNT文件夹中的文件——实际上它们都显示应该启用 GD——我还在两个文件中都将内存从8Mto提高了32M,但仍然没有运气。

更新 2

我们正在将这该死的东西移到另一台服务器上。不值得花时间让这该死的东西正常工作。感谢所有的贡献。

phpinfo() 链接 (http://netcomdevelopment.com/test.php)

EXT 目录 文件列表

0 投票
8 回答
148650 浏览

windows - 在 Windows Server 2008 R2 上注册 DLL 文件

我正在尝试在 Windows Server 2008 R2 上注册一个 COM DLL 文件。以下是我采取的步骤:

  1. cmd以管理员身份运行
  2. c:\windows\system32\regsvr32.exe c:\tempdl\temp12.dll

当我执行该命令时,我收到此错误:

模块temp12.dll加载失败。确保二进制文件存储在指定路径或首次使用它以检查二进制文件或相关.DLL文件是否存在问题。指定的模块无法找到。

我能够在 Windows 2000 上注册相同的 DLL 文件。

我也试过

我得到了这个错误:

模块c:\tempdl\temp12.dll已加载,但调用DllRegisterServer失败并出现错误代码0x80040154。有关此问题的更多信息,请使用错误代码作为搜索词在线搜索