C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




Process to create code group for VSTO application


Posted Date: 20 May 2008    Resource Type: Articles    Category: Web Applications
Author: revathiMember Level: Silver    
Rating: Points: 10



Creating code group for VSTO application:

Whenever protected resources are accessed by an assembly, code access security system determines the permission. Each permission set granted to an assembly is based on the assembly’s evidence which can be URL, publisher certificate or strong name which is based on configurable security policy.
Code groups are the building blocks of security policies. A Code Group is made of an association between an evidence value and a permission set.

To add code group
1. Go to control Panel
2. Click on Administrative Tools
3. To add code group to applications developed using version 1.1 click on Microsoft .Net Framework 1.1 Configuration.
4. To add code group to applications developed using version 2.0 click on Microsoft.Net Framework 2.0 configuration.
5. It will show you .net framework configuration window.

To add new code group Click on user and All_code. To create code group for VSTO projects it will show VSTOProjects in Code_Groups->All_Code->VSTOProjects.
There are number of built-in permission sets as shown below.
• FullTrust
• Everything
• Internet
• Local Intranet
• Execution
• Skip Verification
• Nothing
Register CodeGroup
We need to decide on the following while creating a code-group
1. At what level we need to set the code group?
2. What evidence value is to be set?
3. What permission set we need to provide for this code-group?
Process to create new code group for VSTO project:
1. Right Click on VSTOProjects and click new.
2. Specify name for code group and provide description for it.
3. Then choose condition type for this code group.
4. All the available choices will be displayed in the dropdown list.
5. Select URL from this list, it will display URL textbox.
6. Mention the application path for which you want to create code group.
7. Then select the required permission set.
8. Click on next and Finish.
9. It will create code group for your application.

When you will open application it will refer to the corresponding code group to check for permissions.





Responses

Author: Mahesh Raj    07 Jun 2008Member Level: Gold   Points : 1
This is very good information,Continue posting such useful articles.


Author: John Fernandez    08 Jun 2008Member Level: Gold   Points : 1
Very well written Article.Thanks for sharing this information.


Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Http://www.somewebsite.com/  .  Code group for VSTO application  .  

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Managing Database Connections using ADO.NET
Previous Resource: Trap the CheckedChanged event of checkbox control in ASP.NET datagrid.
Return to Discussion Resource Index
Post New Resource
Category: Web Applications


Post resources and earn money!
 
Related Resources



dotNet Slackers   BizTalk Adaptors    Web Design


Contact Us    Privacy Policy    Terms Of Use