加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > asp.Net > 正文

asp.net – 防止将aspnet_client文件夹添加到.NET站点

发布时间:2020-12-16 06:54:09 所属栏目:asp.Net 来源:网络整理
导读:是的,其他问题在这里深入探究原因.我知道为什么要添加文件夹. 但是我还没有看到这个问题的回答: 我如何确保aspnet_client永远不会添加到我的.net站点,EVER? 解决方法 查看 ASP.NET IIS Registration Tool (Aspnet_regiis.exe)上的MSDN文档.有一个e和ea命令
是的,其他问题在这里深入探究原因.我知道为什么要添加文件夹.
但是我还没有看到这个问题的回答:

我如何确保aspnet_client永远不会添加到我的.net站点,EVER?

解决方法

查看 ASP.NET IIS Registration Tool (Aspnet_regiis.exe)上的MSDN文档.有一个e和ea命令行开关,你应该可以用它来清理它.

You can use Aspnet_regiis.exe to install and remove system client-side script,such as script for client-side validation. Use the -c option to install client script for the version of ASP.NET that is associated with the tool. (Script is installed in the Aspnet_client subdirectory of each IIS site directory.) To remove the client-side script for just the ASP.NET version that is associated with the tool,use the -e option. To remove the client-side script for all installed versions of ASP.NET,use the -ea option.

(重点补充.)

不幸的是,即使是.NET 4安装程序也会添加此目录,因此将继续需要进行清理.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读