IDAutomation.com, Inc., Computers Hardware, Software & Services, Tampa, FL Contact IDAutomationView your cart in the IDAutomation Store  
Loading

IDAutomation will be closed November 27th & 28th for Thanksgiving.

Run .NET Applications from a Mapped Drive

Problem

When attempting to run the Barcode Label Software or the Barcode Image Generator from a server via a shared or mapped drive, an error similar to the following may occur:

Permission Error Image

This problem is caused because of security settings designed to protect the system. .NET applications do not grant rights to use DLLs on networked or mapped drives.

Solution:

To fix this problem, the code access security setting must be modified for the assemblies used by the application. To modify the security settings, try the following:

  1. Download and run this EXE file in the network drive or mapped directory where the application files reside.
  2. If this does not work, 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 element for the custom assembly that specifies the required permissions. To do this, 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.
Related Documents:

Back to Top


Copyright 2013 IDAutomation.com, Inc., All Rights Reserved. Legal Notices.

Barcode Fonts | Components | Scanners | Support | Contact Us
Training Videos on YouTubeJoin us on LinkedInFollow us on TwitterLike us on Facebook
70% of Fortune 100 Company's use IDAutomation Products.