是否存在命令行工具 CASPOL.exe 的替代品?
当尝试执行 .NET-App 时,它会抛出“PolicyException”,因为“只允许一组”。 该工具应列出现有设置,并允许删除选定的设置。 使用 caspol 来列出没有帮助,它很残酷。
我看到有一个简单的 gui 前端,它允许定义新设置,但不允许列出或删除现有设置。
Caspol 是一场噩梦,难怪有人选择使用它。对于.NET 1.1,微软提供了一个配置实用程序,但对于.NET 2.0,我什么也没找到。
When trying to execute a .NET-App, it throws a "PolicyException", because "only one group is allowed".
The tool should list existing settings, and allow to delete selected settings.
Using caspol to list is not helpful, it is cruel.
I've seen there is a simple gui-frontend, which allows to define NEW settings, but it does not allow to list or delete existing settings.
Caspol is a nightmare, no wonder anyone uses it by choice. With .NET 1.1 Microsoft delivered a configuration-utility, but for .NET 2.0 i've found nothing.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
2.0 也有一个配置小程序,我想它是随 2.0 SDK 一起提供的。如果您安装了它,它应该位于
管理工具
中,并被称为“Microsoft .NET Framework 2.0 配置”。There's a Configuration Applet for 2.0 as well, think it comes with the 2.0 SDK. If you got it installed it should be in the
Admin Tools
and be called "Microsoft .NET Framework 2.0 Configuration".您可以使用这段代码创建您自己的工具(gui 或命令行):
You can do your own tool (gui or command-line) with this piece of code:
该实用程序是 .Net 2.0 中的 SDK。确保已安装。
另外,您可能有兴趣了解 .Net 3.5 sp1 和更高版本消除了 CAS 的一些痛点。
The utility is part of the SDK in .Net 2.0. Make sure that's installed.
Also, you might be interested to know that .Net 3.5 sp1 and later removed some of the pain points with CAS.
MsCorCfg 似乎尚未在 Visual Studio 的后续版本中提供。我有2010,但一直无法找到这个文件。
MsCorCfg doesn't seem to have been made available with later releases of visual studio. I have 2010, but have not been able to locate this file.