Performing the Configuration

The example won't work unless you configure it for use. Actually, you need to perform this configuration for any Visual Studio .NET application written for Microsoft Office. The .NET Framework applications require this configuration as a security precaution—to ensure add-ins have your permission to run. The process is relatively simple, but you must have administrative privileges. The following steps show you how to perform this task.

1. Use the Start ^ Programs ^ Administrative Tools ^ Microsoft .NET Framework 1.1 Configuration command to open the .NET Configuration 1.1 console shown in Figure 7.2. You can also open this console using the Microsoft .NET Framework 1.1 Configuration icon in the Administrative Tools folder of the Control Panel.

FIGURE 7.2:

Use the .NET Configuration 1.1 utility to set up the eBay Lister DLL.

The common language runtime's code access security system determines an assembly's permissions to access protected resources. Each permission set granted to an assembly is based on the assembly's evidence (such as its URL or publisher certificate), which in turn is based on configurable security policy.

The common language runtime's code access security system determines an assembly's permissions to access protected resources. Each permission set granted to an assembly is based on the assembly's evidence (such as its URL or publisher certificate), which in turn is based on configurable security policy.

To learn more about the code access security model, refer to the Microsoft .net Framework SDK documentation.

The wizards and task links below will help you set and distribute security policy. For complete control of security policy, use the tree views under this node.

Tasks

Increase Assembly Trust

Use the Trust an Aeserrijfy wizard to increase the level of trust granted tn a particular asserribty. "TTie wizard rnodifes security policy based cn infer rnation about the evidence of the asserrfcit/ selected.

aaiu&aonESemuti use the security adjustment Wiza-d tn modify the Je^el of trust granted to ell assemblies coming from a particular zene, such as Internet, Local Intranet, or My computer.

2. Select the Runtime Security Policy folder as shown in Figure 7.2. This folder contains the security settings for the assemblies, a Dynamic Link Library (DLL) in this case.

3. Click Increase Assembly Trust. You'll see a Trust an Assembly dialog box.

4. Select the Make Changes to This Computer option and click Next. The wizard will ask you which assembly you want to trust.

5. Locate the eBayLister.DLL file that is part of the example. You'll normally find this file in the \MicrosoftSamp1e\eBayLister_bin\ folder of the example, but the location could vary. Click Next. The wizard will ask what level of security you want to assign to the assembly.

6. Set the slider for this assembly to Full Trust. Click Next. You'll see a Completing the Wizard dialog box similar to the one shown in Figure 7.3. Notice the settings in this dialog box.

7. Click Finish. The assembly is now ready for use at its current location. If you move the assembly, you must also reset the security.

Was this article helpful?

0 0
Ebay PowerSeller

Ebay PowerSeller

The Definitive Guide to Becoming an eBay Powerseller guides you through the rules, giving lists of prohibited items, behaviors, and other landmines.

Get My Free Ebook


Post a comment