IIS黄页报错:找不到方法:“!!0[] System.Array.Empty()”

本文解决了一个在IIS上发布的程序因服务器缺少.NET Framework 4.6而出现的错误。通过逐步安装.NET Framework 4.6及其所需更新kb2919355和kb2919442,最终成功运行程序。

公司一程序发布到iis之后,某一页面报黄页:找不到方法:“!!0[] System.Array.Empty()”。

原因是服务器缺少framework 4.6

1、安装.NET Framework 4.6  ,下载地址是 :https://www.microsoft.com/zh-cn/download/details.aspx?id=49981

 

2、安装过程提示缺少kb2919355,下载:https://support.microsoft.com/zh-cn/help/2919355/windows-rt-8-1-windows-8-1-windows-server-2012-r2-update-april-2014

 

3、安装kb2919355提示“不适用此电脑”,缺少kb2919442,下载:https://www.microsoft.com/zh-cn/download/details.aspx?id=42153

 

安装kb2919442之后,安装kb2919355,然后安装.NET Framework 4.6,再运行程序不再报错

ftp> ls 200 EPRT command successful. 125 Data connection already open; Transfer starting. 08-18-25 10:50AM 19 test.txt 226 Transfer complete. ftp> ls 200 EPRT command successful. 125 Data connection already open; Transfer starting. 08-18-25 10:50AM 19 test.txt 226 Transfer complete. ftp> dir 200 EPRT command successful. 125 Data connection already open; Transfer starting. 08-18-25 10:50AM 19 test.txt 226 Transfer complete. ftp> pwd Remote directory: / ftp> send /home/wangjuncong/Documents/array_test.c / local: /home/wangjuncong/Documents/array_test.c remote: / 200 EPRT command successful. 550-Access is denied. Win32 error: Access is denied. Error details: Write access for the root of the virtual directory is forbidden. 550 End ftp> system 215 Windows_NT ftp> mkdir test_dir 257 "test_dir" directory created. ftp> ls 200 EPRT command successful. 125 Data connection already open; Transfer starting. 08-18-25 10:50AM 19 test.txt 08-18-25 11:01AM <DIR> test_dir 226 Transfer complete. ftp> put empty_test_file local: empty_test_file remote: empty_test_file ftp: Can't open `empty_test_file': 没有那个文件或目录 ftp> status Connected and logged into 10.160.87.29. No proxy connection. Gate ftp: off, server (none), port ftpgate. Passive mode: off; fallback to active mode: off. Mode: stream; Type: ascii; Form: non-print; Structure: file. Verbose: on; Bell: off; Prompting: on; Globbing: on. Store unique: off; Receive unique: off. Preserve modification times: on. Case: off; CR stripping: on. Ntrans: off. Nmap: off. Hash mark printing: off; Mark count: 1024; Progress bar: on. Get transfer rate throttle: off; maximum: 0; increment 1024. Put transfer rate throttle: off; maximum: 0; increment 1024. Socket buffer sizes: send 16384, receive 131072. Use of PORT cmds: on. Use of EPSV/EPRT cmds for IPv4: on. Use of EPSV/EPRT cmds for IPv6: on. Command line editing: on. Version: tnftp 20210827 ftp> send /home/wangjuncong/Documents/array_test.c /test_dir local: /home/wangjuncong/Documents/array_test.c remote: /test_dir 200 EPRT command successful. 550-Access is denied. Win32 error: Access is denied. Error details: File system denied the access. 550 End 测试如下,就是无法发送,怎么办
最新发布
08-19
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值