从网络共享文件夹中执行.net的winfrom应用程序.

本文介绍如何为自定义程序集创建权限集与代码组,包括设置运行时安全策略、指定所需权限及关联特定URL路径等步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Follow the steps outlined below: (These steps were created for our Barcode Label Software based on the information found in Microsoft's Knowledge Base article 842419.)

Create the permission set element and the code group elementfor the custom assembly that specifies the required permissions. To dothis, follow these steps:

  1. Click Start, point to Settings, and then click Control Panel.
  2. In Control Panel, double-click Administrative Tools.
  3. In the Administrative Tools window, double-click Microsoft .NET Framework 1.1 Configuration.
  4. In the left pane of the .NET Configuration 1.1 window, expand Runtime Security Policy.
  5. Under Runtime Security Policy, expand Machine.
  6. Under Machine, right-click Permission Sets, and then click New.
  7. On the Identify the new Permission Set page, click Create a new permission set.
  8. Type "TestPermissions" in the Name box, and then click Next.
  9. On the Assign Individual Permissions to Permission Set page, click Security in the Available Permissions list, and then click Add.
  10. In the Permission Settings dialog box, click Grant assemblies the following security permissions, and then click to select the following check boxes: 
    • Enable Assembly Execution
    • Assert any permission that has been granted
    • Note: Other listed permission settings can be turned on based on user requirements
  11. Click OK.
  12. On the Assign Individual Permissions to Permission Set page, add any additional permissions from the Available Permissions list to the Assigned Permissions list.
  13. Click Finish.
  14. In the .NET Configuration 1.1 window, expand Code Groups under Machine.
  15. Under Code Groups, right-click All_Code, and then click New.
  16. On the Identify the new Code Group page, click Create a new code group, type "TestCodeGroup" in the Name box, and then click Next.
  17. On the Choose a condition type page, click URL in the Choose the condition type for this code group list.
  18. Type the absolute path of the assemblies of the Label Software (For example: "Z:/Program Files/IDAutomation.com Label Software/IDAutomation.LinearBarcode.dll".) in the URL box, and then click Next.
  19. On the Assign a Permission Set to the Code Group page, click Use existing permission set, and then click TestPermissions in the list.
  20. Click Next, and then click Finish.

http://www.idautomation.com/kb/label_software_from_server.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值