Sharepoint Forum

 
Home » Forum » Sharepoint       Ask a questionRSS Feeds

Code Access Security Question

  Asked By: Antoinette Cross         Date: Sep 11, 2007      Category: Sharepoint      Views: 194
 

I have modified the web.config file of the sharepoint virtual server to
point to a copy of the wss_minimaltrust.config that I renamed to
wss_customtrust.config. I have followed all the steps to setup the
additional permissions that I want and the code groups to identify
assemblies signed by me. So my questions are these:

1. Do I still have to put an entry into the web.config <safecontrol>
for each webpart that I deploy into the bin directory of the virtual
server.

2. If I use a <IMembershipCondition> tag with
class="StrongNameMembershipCondition", by omitting the name property I
can use the same key to sign multiple assemblies? Is this true? How
does this affect the entries in the <safecontrol> section because they
need to specify the namespace property.

Tagged:        

 

3 Answers Found

 
Answer #1       Answered By: Vinay Thakur          Answered On: Sep 11, 2007       

Has anyone worked through the CAS procedures?

 
Answer #2       Answered By: Judy Pittman          Answered On: Sep 11, 2007       

There is a nice CAS overview white paper on our premium content section
of www.mindsharp.com.

 
Answer #3       Answered By: Micheal Knight          Answered On: Sep 11, 2007       

You are correct--its a very nice overview. So is the one in Todd
Bleeker's new book, but alas, neither answers the questions.

And now, motivated mostly by a sense of symmetry I will answer my own
questions.

1. Yes
2. a. Yes, b. moot due to (a)

 
Didn't find what you were looking for? Find more on Code Access Security Question Or get search suggestion and latest updates.


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].