我正在尝试在全新的 Server 2012 上启动并运行 IIS 8 以运行 .net 4.5 应用程序,但无法使其跨驱动器工作
Error: 500.19
Module
IIS Web Core
Notification
Unknown
Handler
Not yet determined
Error Code
0x80070005
Config Error
Cannot read configuration file due to insufficient permissions
Config File
\\?\D:\callsheet-test\web.config
Run Code Online (Sandbox Code Playgroud)
当前站点只是一个文件index.html。
如果我将文件夹复制到 c: 上的任何位置,例如 c:\callsheet-test\ 或 c:\inetpub\callsheet-test,一旦我更改 IIS 8 中的目标位置(站点 > 基本设置),它就会完美运行。
是否存在 web.config 文件并不重要,因为复杂的 mvc/webforms 应用程序会给出相同的错误。
我尝试过复制具有权限的文件,甚至认为权限似乎与所有用户匹配。我仍然收到此错误。
我已删除该分区并将其重新创建为挂载点 c:\mount ,并且发生了相同的问题。将文件复制到 c:\notamount,它们可以正常工作。
该服务器在 VMware 服务器上运行。Windows 2012 x64 标准。
我想制作一个bat文件来在Windows Server 2012上安装.net Framework 3.5。我尝试这样做但没有成功:
cd /D %userprofile%
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
Import-Module ServerManager
powershell -ImportSystemModules Add-WindowsFeature NET-Framework-Features
Run Code Online (Sandbox Code Playgroud)
似乎进入 powershell 控制台后最后 2 个命令没有执行。
有谁知道为什么会卡住?
或者是否有人有其他 bat 文件如何在 Windows Server 2012 中自动安装 .net 3.5?
经过更多尝试后,我让蝙蝠在手动运行时使用以下命令。
call C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -ImportSystemModules Add-WindowsFeature NET-Framework-Features
Run Code Online (Sandbox Code Playgroud)
但是当我尝试从 dotnetInstaller 运行它时,同一个蝙蝠不再工作
<component command="CMD.EXE /K "#APPPATH\Install.net3.5.bat"" command_silent="" command_basic="" uninstall_command="" uninstall_command_silent="" uninstall_command_basic="" returncodes_success="" returncodes_reboot="" disable_wow64_fs_redirection="False" id=".Net 3.5 SP1 Win8Server" display_name=".Net 3.5 SP1" uninstall_display_name="" os_filter="" os_filter_min="winServer2008R2" os_filter_max="" os_filter_lcid="" type="cmd" installcompletemessage="" uninstallcompletemessage="" mustreboot="False" reboot_required="" must_reboot_required="False" failed_exec_command_continue="" allow_continue_on_error="True" default_continue_on_error="False" required_install="True" required_uninstall="True" selected_install="True" selected_uninstall="True" note="" processor_architecture_filter="" status_installed="" status_notinstalled="" …Run Code Online (Sandbox Code Playgroud) powershell batch-file .net-3.5 dotnetinstaller windows-server-2012
所以我已经遇到这个错误好几天了。我用谷歌搜索了又搜索,但似乎没有什么可以解决我的情况,我希望有人可以提供帮助。
当我在 ARR(路由规则)中禁用 SSL 卸载时,我收到以下信息:
502 - Web 服务器在充当网关或代理服务器时收到无效响应。
您要查找的页面有问题,无法显示。当 Web 服务器(充当网关或代理)联系上游内容服务器时,它从内容服务器收到无效响应。
因此,进一步挖掘,我启用了失败请求跟踪来捕获错误。该日志提供以下信息:
- 查看跟踪警告-MODULE_SET_RESPONSE_ERROR_STATUS
模块名称:ApplicationRequestRouting
通知:EXECUTE_REQUEST_HANDLER
HttpStatus:502
HttpReason:错误网关
HttpSubStatus:3
错误代码:2147954430
- 查看跟踪警告-SET_RESPONSE_ERROR_DESCRIPTION
错误描述:与服务器的连接异常终止
2 个 ARR/NLB 服务器
2 个内容服务器
基本上,我试图通过 NLB 和 ARR 预先实现负载平衡和冗余。我按照书本上的所有配置进行了操作。这些都是全新安装,仅安装了最少的组件。该证书是通过 AD CA 自签名的。根 CA 安装在所有服务器上的受信任证书颁发机构中。
当我在 ARR 中启用 SSL 卸载时,一切都在端口 80(非 SSL)上完美运行。但是,由于应用程序限制,我无法启用卸载。
通过 http 和 https 直接访问内容服务器可以正常工作(除了浏览器关于证书的警告之外)。
我尝试在每台服务器上安装证书并在站点绑定中进行选择,而不是选择集中证书存储,但这似乎并不重要,因为当 ARR 是请求者时,我得到相同的结果。
下面我附上了相关的配置文件。提前谢谢了。
是否有任何代码或程序可以通过它确认 WebSocket 是否正确安装在我的 Windows Server 2012 服务器上
我遇到了 WebSocket 的问题。它无法在 Windows Server 2012 上运行。我已经在 Windows Server 2012 上安装了 WebSockets
我已经重新启动服务器两次了。
WebSocket 无法在我的服务器上工作的证据是我的以下 url(Signalr 使用它来决定 WebSocket 是否打开)
{
Url: "/signalr/default",
ConnectionToken: "xxxx",
ConnectionId: "cf63a537-ed4a-4d29-afaf-f0aec454b0c2",
KeepAliveTimeout: 6,
DisconnectTimeout: 9,
ConnectionTimeout: 110,
TryWebSockets: false,
ProtocolVersion: "1.5",
TransportConnectTimeout: 5,
LongPollDelay: 0
}
Run Code Online (Sandbox Code Playgroud)
即 TryWebSockets: false
该应用程序在我的本地 Windows 8 计算机上运行良好的相同代码。它给
尝试WebSockets:true
Windows Server 2012 上的 IIS 版本是 IIS 8.5。我的网站在 .Net Framework 4.5 下运行。Windows 防火墙已经关闭。在我的应用程序设置中,我也添加了以下内容:
<add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" />
Run Code Online (Sandbox Code Playgroud)
在我的 web.config 中我也有这个:
<webSocket enabled="true"/> …Run Code Online (Sandbox Code Playgroud) 我开发了一个 C# Web 表单应用程序,可以在服务器端生成 PDF 文档并将其发送到客户端。我使用Microsoft Print To PDF (MPTP)、PrintDocument和PrintPageEventArgs.Graphics.DrawString生成 PDF. This works great on my local machine.
\n\n输入服务器:当我上传应用程序并尝试在服务器上运行它时,收到一条错误消息,提示未安装打印机。我检查打印机和设备,发现 MPTP 未在服务器上列出(解决我的问题的一种方法是将 MPTP 设置为默认打印机)。
\n\n如果“打印机和设备”中没有 MPTP:
\n\n问题是我那里也没有 MPTP。要解决这个问题:
\n\n它应该安装 MPTP 的驱动程序,但问题是我的列表中没有 MPTP! This is the part that is problematic.
\n\n我在网上找不到这个问题的帮助(甚至找不到未回答的问题)。我无法在线找到驱动程序,因此我可以手动安装它们,但不知道如何修复它。
\n\n我尝试使用 …
我最近将我的 WP 站点从 godaddy 迁移到使用 Windows Server 2012 R2 的物理服务器。
但我在使用管理面板上传文件时遇到问题,上传文件后,我可以在服务器上实际看到它(wp-content\upload\2017\10),但我在网站上看不到它。
仅当我在服务器上更改文件的权限时,我才能看到该文件。
我已经更改了该文件夹的权限,我向相关用户授予了完全访问权限。但是,它仍然不适用于我通过 wp 管理面板上传的新文件\图片
编辑:
我注意到每次我更改文件夹权限时,CREATOR OWNER 下的权限始终为空,是否相关?
非常感谢你的帮助
我有一个 ASP.NET MVC4 网站,我正在尝试在服务器上执行一个进程。代码如下:
ProcessStartInfo startInfo = new ProcessStartInfo()
{
FileName = ExeLocation,
Arguments = string.Format("\"{0}\"{1}", ScriptLocation, Arguments),
UseShellExecute = false,
RedirectStandardOutput = true,
RedirectStandardError = true,
WorkingDirectory = AppDir,
CreateNoWindow = true,
UserName = ExeUsername,
Password = ExePassword,
Domain = ExeDomain
};
using (Process process = Process.Start(startInfo))
{
using (StreamReader reader = process.StandardOutput)
{
output = reader.ReadToEnd();
}
using (StreamReader reader = process.StandardError)
{
error = reader.ReadToEnd();
}
process.WaitForExit();
if (process.ExitCode != 0)
{
throw new Exception(string.IsNullOrEmpty(output) ? error …Run Code Online (Sandbox Code Playgroud) 我正在尝试设置 cpu 速率限制,我能够使用操作链接在 UI 中执行此操作
https://theitbros.com/set-cpu-usage-limit-for-an-application-pool-iis-8/
但我想使用 powershell 设置以下三个值
CPU limit=20%
CPU limit Action= Killw3p
Cpu Limit Interval= 1
Run Code Online (Sandbox Code Playgroud)
我已经使用 powershell 将启动模式设置为始终运行。
set-itemproperty IIS:\AppPools\AddressBroker.API -name startMode -value AlwaysRunning
Run Code Online (Sandbox Code Playgroud)
我尝试过类似下面的方法,但不起作用。
set-itemproperty IIS:\AppPools\AddressBroker.API -name CPU -value Limit=20%
Run Code Online (Sandbox Code Playgroud) 我正在尝试安装AppFabric 1.1在我身上,Windows Server 2012但它没有安装.它给出了错误.
AppFabric installation failed because installer MSI returned with error code:1603
Run Code Online (Sandbox Code Playgroud)
已创建的日志文件如下所示.
2013-03-05 18:06:29, Information Setup ===== Logging started: 2013-03-05 18:06:29+05:30 =====
2013-03-05 18:06:29, Information Setup File: c:\338f6462408072c851cf3b1e\setup.exe
2013-03-05 18:06:29, Information Setup InternalName: Setup.exe
2013-03-05 18:06:29, Information Setup OriginalFilename: Setup.exe
2013-03-05 18:06:29, Information Setup FileVersion: 1.1.2106.32
2013-03-05 18:06:29, Information Setup FileDescription: Setup.exe
2013-03-05 18:06:29, Information Setup Product: Microsoft(R) Windows(R) Server AppFabric
2013-03-05 18:06:29, Information Setup ProductVersion: 1.1.2106.32
2013-03-05 18:06:29, Information Setup Debug: False …Run Code Online (Sandbox Code Playgroud) asp.net ×3
iis ×3
c# ×2
iis-8 ×2
powershell ×2
.net-3.5 ×1
appfabric ×1
arr ×1
asp.net-mvc ×1
batch-file ×1
driver ×1
installation ×1
pdf ×1
permissions ×1
signalr ×1
ssl ×1
tfs ×1
web-farm ×1
websocket ×1
windows ×1
wordpress ×1