Smart Console Setup Instructions
Before performing this procedure, you must have the .NET Framework SDK
installed on your system and your browser must be IE 6 or later. If your
system doesn't meet these requirements, the programs in the C# Tutorial
will not run on-line. Remember, you can always compile and run the
example code on your own system.
1. Go to Administrative Tools and open the Microsoft .NET Framework
Configuration Wizard. Open the tree to Runtime Security Policy ->
Machine -> Permission Sets. Your configuration tool should look
similar to the one below.

2. Click on the Create New Permission Set link in the Tasks section of the
Permission Sets pane. In the Create Permission Set dialog fill in the Name with
"EnvironmentExecute" and give it a description as shown below. Click the Next
button when ready.

3. The next screen is the Assign Individual Permissions dialog. When your's
appears the Assigned Permissions will be blank. However, after completing steps
4 and 5, this dialog will look like the one below, with Environment Variables
and Security entries in the Assigned Permissions list.

4. Select "Environment Variables" from the Available Permissions column and
press the Add button. This will bring up the Permission Settings dialog shown
below. Add a Variable named "PATH", check its read box, and click the OK button
when ready. The Environment Variables permission will now appear in the
Assigned Permissions list of the Assign Individual Permissions dialog, above.

5. Select "Security" from the Available Permissions column and press the Add
button. This will bring up the Permission Settings dialog shown below. Check
"Enable assembly execution" and click the OK button when ready. The Security
permission will now appear in the Assigned Permissions list of the Assign
Individual Permissions dialog, above.

6. Select User Interface from the Available Permissions column and press the
Add button. This will bring up the Permission Settings dialog shown below.
Check "Grant assemblies unrestricted access to user interface elements" and click
the OK button when ready. The Security permission will now appear in the Assigned
Permissions list of the Assign Individual Permissions dialog, above. Click the Finish button on the Assign
Individual Permissions dialog when done. This creates a new entry in the
Permission Sets list named EnvironmentExecute.

7. Next, you will create a code group that gives the permissions in the
EnvironmentExecute permission set to the sample executable programs for the C#
Station Tutorial. Open the tree to Runtime Security Policy -> Machine ->
Code Groups -> All Code. Your configuration tool should look similar
to the one below.

8. Right-Click on All Code and select New... This will open the
Create Code Group dialog. Add the name "C# Station" and optionally add a
Description as shown below. Click the Next button when ready.

9. Select URL as the Condition Type from the drop down list and enter
"http://www.csharp-station.com/Tutorials/Executables/*" into the URL text box
as shown below. Click the Next button when ready.

10. Select the "EnvironmentExecute" permission, which you just
created, from the drop down list. Click the Next button when ready.

11. This is the last step in the permissions set-up process. You will
see the Completion Dialog below and my click finish to complete the
process. Now you can run the C# Tutorial Sample Programs on-line.

Your feedback and constructive contributions are welcome. Please feel free
to contact me for feedback or comments you may have about this lesson.
Copyright © 2000-2008 C# Station, All Rights Reserved